src/Entity/EmailManagerLog.php line 12
<?phpnamespace App\Entity;use App\Repository\EmailManagerLogRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EmailManagerLogRepository::class)]class EmailManagerLog{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $emailFrom = null;#[ORM\Column(length: 255)]private ?string $emailTo = null;#[ORM\Column(nullable: true)]private array $cc = [];#[ORM\Column(length: 255)]private ?string $subject = null;#[ORM\Column(type: Types::TEXT)]private ?string $body = null;#[ORM\Column(type: Types::TEXT)]private ?string $response = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $modified = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $created = null;#[ORM\Column(nullable: true)]private ?array $attachments = null;public function __construct(){$date = new \DateTime("now", new \DateTimeZone('Asia/Dubai'));$this->setModified($date);if ($this->getCreated() == null){$this->setCreated($date);}}public function getId(): ?int{return $this->id;}public function getEmailFrom(): ?string{return $this->emailFrom;}public function setEmailFrom(string $emailFrom): static{$this->emailFrom = $emailFrom;return $this;}public function getEmailTo(): ?string{return $this->emailTo;}public function setEmailTo(string $emailTo): static{$this->emailTo = $emailTo;return $this;}public function getCc(): array{return $this->cc;}public function setCc(?array $cc): static{$this->cc = $cc;return $this;}public function getSubject(): ?string{return $this->subject;}public function setSubject(string $subject): static{$this->subject = $subject;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(string $body): static{$this->body = $body;return $this;}public function getResponse(): ?string{return $this->response;}public function setResponse(string $response): static{$this->response = $response;return $this;}public function getModified(): ?\DateTimeInterface{return $this->modified;}public function setModified(\DateTimeInterface $modified): static{$this->modified = $modified;return $this;}public function getCreated(): ?\DateTimeInterface{return $this->created;}public function setCreated(\DateTimeInterface $created): static{$this->created = $created;return $this;}public function getAttachments(): ?array{return $this->attachments;}public function setAttachments(?array $attachments): static{$this->attachments = $attachments;return $this;}}