src/Entity/NotificationTemplate.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationTemplateRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassNotificationTemplateRepository::class)]
  7. class NotificationTemplate
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  14.     private ?string $template null;
  15.     #[ORM\OneToOne(inversedBy'notificationTemplate'cascade: ['persist''remove'])]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?NotificationType $type null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getTemplate(): ?string
  23.     {
  24.         return $this->template;
  25.     }
  26.     public function setTemplate(string $template): self
  27.     {
  28.         $this->template $template;
  29.         return $this;
  30.     }
  31.     public function getType(): ?NotificationType
  32.     {
  33.         return $this->type;
  34.     }
  35.     public function setType(NotificationType $type): self
  36.     {
  37.         $this->type $type;
  38.         return $this;
  39.     }
  40.     
  41. }