src/Entity/CropactionTranslation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Translation\AutoTranslationTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. #[ORM\Entity]
  7. class CropactionTranslation implements TranslationInterface
  8. {
  9.     use AutoTranslationTrait;
  10.     #[ORM\Id]
  11.     #[ORM\Column(type'integer')]
  12.     #[ORM\GeneratedValue(strategy'AUTO')]
  13.     private $id;
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     private ?string $title null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $text null;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $notification_text null;
  20.     #[ORM\Column(type'json'nullabletrue)]
  21.     private ?array $additional_data null;
  22.     /**
  23.      * @return int
  24.      */
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getTitle(): ?string
  30.     {
  31.         return $this->title;
  32.     }
  33.     public function setTitle(?string $title): CropactionTranslation
  34.     {
  35.         $this->title $title;
  36.         return $this;
  37.     }
  38.     public function getText(): ?string
  39.     {
  40.         return $this->text;
  41.     }
  42.     public function setText(?string $text): CropactionTranslation
  43.     {
  44.         $this->text $text;
  45.         return $this;
  46.     }
  47.     public function getNotificationText(): ?string
  48.     {
  49.         return $this->notification_text;
  50.     }
  51.     public function setNotificationText(?string $notification_text): CropactionTranslation
  52.     {
  53.         $this->notification_text $notification_text;
  54.         return $this;
  55.     }
  56.     public function getAdditionalData(): ?array
  57.     {
  58.         return $this->additional_data;
  59.     }
  60.     public function setAdditionalData(?array $additional_data): CropactionTranslation
  61.     {
  62.         $this->additional_data $additional_data;
  63.         return $this;
  64.     }
  65. }