src/Entity/EmailQueue.php line 10

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