src/Entity/Geo/RegionTranslation.php line 11

  1. <?php
  2. namespace App\Entity\Geo;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  5. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  6. #[ORM\Table(name'federal_region_translation')]
  7. #[ORM\Entity]
  8. class RegionTranslation implements TranslationInterface
  9. {
  10.     use TranslationTrait;
  11.     /**
  12.      * @var ?int
  13.      */
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue(strategy'AUTO')]
  16.     #[ORM\Column(type'integer')]
  17.     private $id;
  18.     /**
  19.      * @var ?string
  20.      */
  21.     #[ORM\Column(type'string'nullabletrue)]
  22.     private $caption;
  23.     /**
  24.      * @return int|null
  25.      */
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     /**
  31.      * @param int|null $id
  32.      */
  33.     public function setId(?int $id): void
  34.     {
  35.         $this->id $id;
  36.     }
  37.     /**
  38.      * @return string|null
  39.      */
  40.     public function getCaption(): ?string
  41.     {
  42.         return $this->caption;
  43.     }
  44.     /**
  45.      * @param string|null $caption
  46.      */
  47.     public function setCaption(?string $caption): void
  48.     {
  49.         $this->caption $caption;
  50.     }
  51. }