src/Entity/Content/SMI/SmiItemTranslation.php line 10

  1. <?php
  2. namespace App\Entity\Content\SMI;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  5. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  6. #[ORM\Entity]
  7. class SmiItemTranslation implements TranslationInterface
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue(strategy'AUTO')]
  11.     #[ORM\Column(type'integer')]
  12.     private ?int $id null;
  13.     use TranslationTrait;
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     private ?string $caption null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $shortText null;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $text null;
  20.     /**
  21.      * @return string|null
  22.      */
  23.     public function getCaption(): ?string
  24.     {
  25.         return $this->caption;
  26.     }
  27.     /**
  28.      * @param string|null $caption
  29.      */
  30.     public function setCaption(?string $caption): void
  31.     {
  32.         $this->caption $caption;
  33.     }
  34.     /**
  35.      * @return string|null
  36.      */
  37.     public function getText(): ?string
  38.     {
  39.         return $this->text;
  40.     }
  41.     /**
  42.      * @param string|null $text
  43.      */
  44.     public function setText(?string $text): void
  45.     {
  46.         $this->text $text;
  47.     }
  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.     public function getShortText(): ?string
  63.     {
  64.         return $this->shortText;
  65.     }
  66.     public function setShortText(?string $shortText): void
  67.     {
  68.         $this->shortText $shortText;
  69.     }
  70. }