src/Entity/Gallery/GroupTranslation.php line 10

  1. <?php
  2. namespace App\Entity\Gallery;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  5. #[ORM\Table(name'gallery_group_translation')]
  6. #[ORM\Entity]
  7. class GroupTranslation implements TranslationInterface
  8. {
  9.     use \Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue(strategy'AUTO')]
  12.     #[ORM\Column(type'integer')]
  13.     private ?int $id;
  14.     #[ORM\Column(type'string')]
  15.     private ?string $caption null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $preview null;
  18.     /**
  19.      * @return string|null
  20.      */
  21.     public function getPreview(): ?string
  22.     {
  23.         return $this->preview;
  24.     }
  25.     /**
  26.      * @param string|null $preview
  27.      */
  28.     public function setPreview(?string $preview): void
  29.     {
  30.         $this->preview $preview;
  31.     }
  32.     /**
  33.      * @return string|null
  34.      */
  35.     public function getText(): ?string
  36.     {
  37.         return $this->text;
  38.     }
  39.     /**
  40.      * @param string|null $text
  41.      */
  42.     public function setText(?string $text): void
  43.     {
  44.         $this->text $text;
  45.     }
  46.     #[ORM\Column(type'text'nullabletrue)]
  47.     private ?string $text null;
  48.     /**
  49.      * @return int|null
  50.      */
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * @param int|null $id
  57.      */
  58.     public function setId(?int $id): void
  59.     {
  60.         $this->id $id;
  61.     }
  62.     /**
  63.      * @return string|null
  64.      */
  65.     public function getCaption(): ?string
  66.     {
  67.         return $this->caption;
  68.     }
  69.     /**
  70.      * @param string|null $caption
  71.      */
  72.     public function setCaption(?string $caption): void
  73.     {
  74.         $this->caption $caption;
  75.     }
  76. }