<?phpnamespace App\Entity;use App\Repository\EmailProgrammationRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass=EmailProgrammationRepository::class) */class EmailProgrammation{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text") * @Assert\NotBlank */ private $template; /** * @ORM\Column(type="datetime") * @Assert\NotBlank */ private $sendingDate; /** * @ORM\Column(type="string", length=255) * @Assert\NotBlank */ private $sender; /** * @ORM\Column(type="string", length=255) * @Assert\NotBlank */ private $reciever; /** * @ORM\Column(type="string", length=255) * @Assert\NotBlank */ private $object; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $cc; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $cci; /** * @ORM\Column(type="json", nullable=true) */ private $detail = []; /** * @ORM\Column(type="text") */ private $content; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="emailProgrammations") * @ORM\JoinColumn(nullable=false) */ private $client; 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 getSendingDate(): ?\DateTimeInterface { return $this->sendingDate; } public function setSendingDate(\DateTimeInterface $sendingDate): self { $this->sendingDate = $sendingDate; return $this; } public function getSender(): ?string { return $this->sender; } public function setSender(string $sender): self { $this->sender = $sender; return $this; } public function getReciever(): ?string { return $this->reciever; } public function setReciever(string $reciever): self { $this->reciever = $reciever; return $this; } public function getObject(): ?string { return $this->object; } public function setObject(string $object): self { $this->object = $object; return $this; } public function getCc(): ?string { return $this->cc; } public function setCc(?string $cc): self { $this->cc = $cc; return $this; } public function getCci(): ?string { return $this->cci; } public function setCci(?string $cci): self { $this->cci = $cci; return $this; } public function getDetail(): ?array { return $this->detail; } public function setDetail(?array $detail): self { $this->detail = $detail; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getCreatedAt(): ?\DateTime { return $this->createdAt; } public function setCreatedAt(\DateTime $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): self { $this->client = $client; return $this; }}