<?php
namespace App\Admin\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* StdLanguages
*/
#[ORM\Table(name: 'std_languages')]
#[ORM\Entity(repositoryClass: 'App\Admin\Repository\StdLanguagesRepository')]
class StdLanguages
{
/**
* @var string
*/
#[ORM\Column(name: 'language_code', type: 'string', length: 2, nullable: false, options: ['comment' => 'ISO 639 Language code'])]
#[ORM\Id]
private $languageCode;
/**
* @var string
*/
#[ORM\Column(name: 'name', type: 'string', length: 100, nullable: false, options: ['comment' => 'Language name'])]
private $name;
/**
* @var bool
*/
#[ORM\Column(name: 'is_public', type: 'boolean', nullable: false, options: ['default' => 1, 'comment' => 'Flag to indicate if this language code is available in the front-end'])]
private $isPublic = '1';
/**
* @var bool
*/
#[ORM\Column(name: 'is_available_in_backoffice', type: 'boolean', nullable: false, options: ['default' => 0, 'comment' => 'Flag to indicate if this language code is available in the backoffice'])]
private $isAvailableInBackoffice = '1';
/**
* @var bool
*/
#[ORM\Column(name: 'is_active', type: 'boolean', nullable: true, options: ['default' => 1, 'comment' => 'Flag that indicates if the Language is active'])]
private $isActive = '1';
/**
* @var bool
*/
#[ORM\Column(name: 'is_default', type: 'boolean', nullable: true, options: ['default' => 0, 'comment' => 'Flag that indicates id the Language is default'])]
private $isDefault = '0';
/**
* @var int|null
*/
#[ORM\Column(name: 'order_value', type: 'integer', nullable: true, options: ['comment' => 'Language order'])]
private $orderValue;
/**
* @var string
*/
#[ORM\Column(name: 'locale', type: 'string', length: 5, nullable: false, options: ['comment' => 'Ex: pt-pt, pt-br'])]
private $locale;
public function getLanguageCode(): ?string
{
return $this->languageCode;
}
public function setLanguageCode(string $languageCode): self
{
$this->languageCode = $languageCode;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getIsPublic(): ?bool
{
return $this->isPublic;
}
public function setIsPublic(bool $isPublic): self
{
$this->isPublic = $isPublic;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getIsAvailableInBackoffice(): ?bool
{
return $this->isAvailableInBackoffice;
}
public function setIsAvailableInBackoffice(bool $isAvailableInBackoffice): self
{
$this->isAvailableInBackoffice = $isAvailableInBackoffice;
return $this;
}
public function getIsDefault(): ?bool
{
return $this->isDefault;
}
public function setIsDefault(bool $isDefault): self
{
$this->isDefault = $isDefault;
return $this;
}
public function getOrderValue(): ?int
{
return $this->orderValue;
}
public function setOrderValue(?int $orderValue): self
{
$this->orderValue = $orderValue;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(string $locale): self
{
$this->locale = $locale;
return $this;
}
public function __toString() {
return $this->name;
}
}