<?php
namespace App\Entity;
use App\Entity\Traits\ActiveTrait;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Locales.
*
* @Gedmo\Loggable
*/
#[ORM\Entity(repositoryClass: \App\Repository\LocalesRepository::class)]
#[ORM\Table(name: 'locales')]
class Locales
{
use ActiveTrait;
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
/**
* @Gedmo\Versioned
*/
#[ORM\Column(name: 'locale', type: 'string', length: 6, unique: true)]
private ?string $locale = null;
/**
* @Gedmo\Versioned
*/
#[ORM\Column(name: 'language', type: 'string', length: 255)]
private ?string $language = null;
/**
* Get id.
*/
public function getId(): int
{
return $this->id;
}
/**
* Set locale.
*
* @param string $locale
*/
public function setLocale($locale): self
{
$this->locale = $locale;
return $this;
}
/**
* Get locale.
*/
public function getLocale(): ?string
{
return $this->locale;
}
/**
* Set language.
*
* @param string $language
*/
public function setLanguage($language): self
{
$this->language = $language;
return $this;
}
/**
* Get language.
*/
public function getLanguage(): ?string
{
return $this->language;
}
}