src/Admin/Entity/StdLanguages.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Admin\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * StdLanguages
  6.  */
  7. #[ORM\Table(name'std_languages')]
  8. #[ORM\Entity(repositoryClass'App\Admin\Repository\StdLanguagesRepository')]
  9. class StdLanguages
  10. {
  11.     /**
  12.      * @var string
  13.      */
  14.     #[ORM\Column(name'language_code'type'string'length2nullablefalseoptions: ['comment' => 'ISO 639 Language code'])]
  15.     #[ORM\Id]
  16.     private $languageCode;
  17.     /**
  18.      * @var string
  19.      */
  20.     #[ORM\Column(name'name'type'string'length100nullablefalseoptions: ['comment' => 'Language name'])]
  21.     private $name;
  22.     /**
  23.      * @var bool
  24.      */
  25.     #[ORM\Column(name'is_public'type'boolean'nullablefalseoptions: ['default' => 1'comment' => 'Flag to indicate if this language code is available in the front-end'])]
  26.     private $isPublic '1';
  27.     /**
  28.      * @var bool
  29.      */
  30.     #[ORM\Column(name'is_available_in_backoffice'type'boolean'nullablefalseoptions: ['default' => 0'comment' => 'Flag to indicate if this language code is available in the backoffice'])]
  31.     private $isAvailableInBackoffice '1';
  32.     /**
  33.      * @var bool
  34.      */
  35.     #[ORM\Column(name'is_active'type'boolean'nullabletrueoptions: ['default' => 1'comment' => 'Flag that indicates if the Language is active'])]
  36.     private $isActive '1';
  37.     /**
  38.      * @var bool
  39.      */
  40.     #[ORM\Column(name'is_default'type'boolean'nullabletrueoptions: ['default' => 0'comment' => 'Flag that indicates id the Language is default'])]
  41.     private $isDefault '0';
  42.     
  43.     /**
  44.     * @var int|null
  45.     */
  46.     #[ORM\Column(name'order_value'type'integer'nullabletrueoptions: ['comment' => 'Language order'])]
  47.     private $orderValue;
  48.     /**
  49.      * @var string
  50.      */
  51.     #[ORM\Column(name'locale'type'string'length5nullablefalseoptions: ['comment' => 'Ex: pt-pt, pt-br'])]
  52.     private $locale;
  53.     
  54.     public function getLanguageCode(): ?string
  55.     {
  56.         return $this->languageCode;
  57.     }
  58.     public function setLanguageCode(string $languageCode): self
  59.     {
  60.         $this->languageCode $languageCode;
  61.         return $this;
  62.     }
  63.     
  64.     public function getName(): ?string
  65.     {
  66.         return $this->name;
  67.     }
  68.     public function setName(string $name): self
  69.     {
  70.         $this->name $name;
  71.         return $this;
  72.     }
  73.     public function getIsPublic(): ?bool
  74.     {
  75.         return $this->isPublic;
  76.     }
  77.     public function setIsPublic(bool $isPublic): self
  78.     {
  79.         $this->isPublic $isPublic;
  80.         return $this;
  81.     }
  82.     public function getIsActive(): ?bool
  83.     {
  84.         return $this->isActive;
  85.     }
  86.     public function setIsActive(bool $isActive): self
  87.     {
  88.         $this->isActive $isActive;
  89.         return $this;
  90.     }
  91.     public function getIsAvailableInBackoffice(): ?bool
  92.     {
  93.         return $this->isAvailableInBackoffice;
  94.     }
  95.     public function setIsAvailableInBackoffice(bool $isAvailableInBackoffice): self
  96.     {
  97.         $this->isAvailableInBackoffice $isAvailableInBackoffice;
  98.         return $this;
  99.     }
  100.     public function getIsDefault(): ?bool
  101.     {
  102.         return $this->isDefault;
  103.     }
  104.     public function setIsDefault(bool $isDefault): self
  105.     {
  106.         $this->isDefault $isDefault;
  107.         return $this;
  108.     }
  109.     
  110.     public function getOrderValue(): ?int
  111.     {
  112.         return $this->orderValue;
  113.     }
  114.     public function setOrderValue(?int $orderValue): self
  115.     {
  116.         $this->orderValue $orderValue;
  117.         return $this;
  118.     }
  119.     public function getLocale(): ?string
  120.     {
  121.         return $this->locale;
  122.     }
  123.     public function setLocale(string $locale): self
  124.     {
  125.         $this->locale $locale;
  126.         return $this;
  127.     }
  128.     
  129.     public function __toString() {
  130.         return $this->name;
  131.     }
  132. }