src/Entity/Common/Country.php line 13
<?php
namespace App\Entity\Common;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\DeletedTrait;
use App\Model\Translation\TranslatableTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
#[ORM\Table(name: 'country')]
#[ORM\Entity(repositoryClass: 'App\Repository\Common\CountryRepository')]
class Country implements TranslatableInterface
{
use DeletedTrait;
use ActiveTrait;
use TranslatableTrait;
public const C_RUSSIA = 173;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $caption = null;
#[ORM\Column(type: 'string')]
private string $full_caption;
#[ORM\Column(type: 'string')]
private string $capital;
#[ORM\Column(type: 'string')]
private string $region;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getFullCaption(): string
{
return $this->full_caption;
}
/**
* @param string $full_caption
*/
public function setFullCaption(string $full_caption): void
{
$this->full_caption = $full_caption;
}
/**
* @return string
*/
public function getCapital(): string
{
return $this->capital;
}
/**
* @param string $capital
*/
public function setCapital(string $capital): void
{
$this->capital = $capital;
}
public function getCaption()
{
return $this->translate()->getCaption();
}
/**
* @return string
*/
public function getRegion(): string
{
return $this->region;
}
/**
* @param string $region
*/
public function setRegion(string $region): void
{
$this->region = $region;
}
}