src/Entity/EmailManagerLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmailManagerLogRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassEmailManagerLogRepository::class)]
  9. class EmailManagerLog
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $emailFrom null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $emailTo null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private array $cc = [];
  21.     #[ORM\Column(length255)]
  22.     private ?string $subject null;
  23.     #[ORM\Column(typeTypes::TEXT)]
  24.     private ?string $body null;
  25.     #[ORM\Column(typeTypes::TEXT)]
  26.     private ?string $response null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  28.     private ?\DateTimeInterface $modified null;
  29.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  30.     private ?\DateTimeInterface $created null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?array $attachments null;
  33.     public function __construct()
  34.     {
  35.         $date = new \DateTime("now", new \DateTimeZone('Asia/Dubai'));
  36.         $this->setModified($date);
  37.         if ($this->getCreated() == null) {
  38.             $this->setCreated($date);
  39.         }
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getEmailFrom(): ?string
  46.     {
  47.         return $this->emailFrom;
  48.     }
  49.     public function setEmailFrom(string $emailFrom): static
  50.     {
  51.         $this->emailFrom $emailFrom;
  52.         return $this;
  53.     }
  54.     public function getEmailTo(): ?string
  55.     {
  56.         return $this->emailTo;
  57.     }
  58.     public function setEmailTo(string $emailTo): static
  59.     {
  60.         $this->emailTo $emailTo;
  61.         return $this;
  62.     }
  63.     public function getCc(): array
  64.     {
  65.         return $this->cc;
  66.     }
  67.     public function setCc(?array $cc): static
  68.     {
  69.         $this->cc $cc;
  70.         return $this;
  71.     }
  72.     public function getSubject(): ?string
  73.     {
  74.         return $this->subject;
  75.     }
  76.     public function setSubject(string $subject): static
  77.     {
  78.         $this->subject $subject;
  79.         return $this;
  80.     }
  81.     public function getBody(): ?string
  82.     {
  83.         return $this->body;
  84.     }
  85.     public function setBody(string $body): static
  86.     {
  87.         $this->body $body;
  88.         return $this;
  89.     }
  90.     public function getResponse(): ?string
  91.     {
  92.         return $this->response;
  93.     }
  94.     public function setResponse(string $response): static
  95.     {
  96.         $this->response $response;
  97.         return $this;
  98.     }
  99.     public function getModified(): ?\DateTimeInterface
  100.     {
  101.         return $this->modified;
  102.     }
  103.     public function setModified(\DateTimeInterface $modified): static
  104.     {
  105.         $this->modified $modified;
  106.         return $this;
  107.     }
  108.     public function getCreated(): ?\DateTimeInterface
  109.     {
  110.         return $this->created;
  111.     }
  112.     public function setCreated(\DateTimeInterface $created): static
  113.     {
  114.         $this->created $created;
  115.         return $this;
  116.     }
  117.     public function getAttachments(): ?array
  118.     {
  119.         return $this->attachments;
  120.     }
  121.     public function setAttachments(?array $attachments): static
  122.     {
  123.         $this->attachments $attachments;
  124.         return $this;
  125.     }
  126. }