src/Entity/NotificationTranslation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\NotificationTranslationRepository;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  9. #[ORM\Entity(repositoryClassNotificationTranslationRepository::class)]
  10. class NotificationTranslation implements TranslationInterface
  11. {
  12.     use TranslationTrait;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column(type'integer')]
  16.     private $id;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $subject;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $message;
  21.     
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getSubject(): ?string
  27.     {
  28.         return $this->subject;
  29.     }
  30.     public function setSubject(string $subject): self
  31.     {
  32.         $this->subject $subject;
  33.         return $this;
  34.     }
  35.     public function getMessage(): ?string
  36.     {
  37.         return $this->message;
  38.     }
  39.     public function setMessage(?string $message): self
  40.     {
  41.         $this->message $message;
  42.         return $this;
  43.     }
  44. }