<?phpnamespace App\Entity;use App\Repository\InteractionTemplateRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=InteractionTemplateRepository::class) */class InteractionTemplate{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $type; /** * @ORM\Column(type="text") */ private $content; /** * @ORM\OneToOne(targetEntity=EmailInfo::class, mappedBy="interactionTemplate", cascade={"persist", "remove"}) */ private $emailInfo; public function __construct() { } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getEmailInfo(): ?EmailInfo { return $this->emailInfo; } public function setEmailInfo(?EmailInfo $emailInfo): self { // unset the owning side of the relation if necessary if ($emailInfo === null && $this->emailInfo !== null) { $this->emailInfo->setInteractionTemplate(null); } // set the owning side of the relation if necessary if ($emailInfo !== null && $emailInfo->getInteractionTemplate() !== $this) { $emailInfo->setInteractionTemplate($this); } $this->emailInfo = $emailInfo; return $this; }}