src/Entity/NotificationTemplate.php line 10
<?php
namespace App\Entity;
use App\Repository\NotificationTemplateRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NotificationTemplateRepository::class)]
class NotificationTemplate
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $template = null;
#[ORM\OneToOne(inversedBy: 'notificationTemplate', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private ?NotificationType $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getTemplate(): ?string
{
return $this->template;
}
public function setTemplate(string $template): self
{
$this->template = $template;
return $this;
}
public function getType(): ?NotificationType
{
return $this->type;
}
public function setType(NotificationType $type): self
{
$this->type = $type;
return $this;
}
}