src/Entity/MailingLog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MailingLogRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMailingLogRepository::class)]
  7. class MailingLog
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\ManyToOne(targetEntitymailingTask::class, inversedBy'mailingLogs')]
  14.     private $mailingTask;
  15.     #[ORM\Column(type'datetime')]
  16.     private $dateCreated;
  17.     #[ORM\Column(type'text'nullabletrue)]
  18.     private $message;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $type;
  21.     public function __construct()
  22.     {
  23.         $this->dateCreated = new \DateTime();
  24.     }
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getMailingTask(): ?mailingTask
  30.     {
  31.         return $this->mailingTask;
  32.     }
  33.     public function setMailingTask(?mailingTask $mailingTask): self
  34.     {
  35.         $this->mailingTask $mailingTask;
  36.         return $this;
  37.     }
  38.     public function getDateCreated(): ?\DateTimeInterface
  39.     {
  40.         return $this->dateCreated;
  41.     }
  42.     public function setDateCreated(\DateTimeInterface $dateCreated): self
  43.     {
  44.         $this->dateCreated $dateCreated;
  45.         return $this;
  46.     }
  47.     public function getMessage(): ?string
  48.     {
  49.         return $this->message;
  50.     }
  51.     public function setMessage(?string $message): self
  52.     {
  53.         $this->message $message;
  54.         return $this;
  55.     }
  56.     public function getType(): ?string
  57.     {
  58.         return $this->type;
  59.     }
  60.     public function setType(string $type): self
  61.     {
  62.         $this->type $type;
  63.         return $this;
  64.     }
  65. }