src/Entity/Emaillog.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table(name'emaillog')]
  5. #[ORM\Entity(repositoryClass'App\Entity\Repository\EmaillogRepository')]
  6. class Emaillog
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\Column(type'integer')]
  10.     #[ORM\GeneratedValue(strategy'AUTO')]
  11.     private $id;
  12.     #[ORM\Column(type'string'nullabletrue)]
  13.     private $type;
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     private $email;
  16.     #[ORM\Column(type'string'nullabletrue)]
  17.     private $subject;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private $content;
  20.     #[ORM\Column(type'string'nullabletrue)]
  21.     private $reference_data;
  22.     #[ORM\Column(type'datetime'nullablefalse)]
  23.     private $date_created;
  24.     #[ORM\ManyToOne(targetEntity'App\Entity\User'inversedBy'notificationMail')]
  25.     #[ORM\JoinColumn(name'user_id'referencedColumnName'id'nullablefalse)]
  26.     private $user;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getType(): ?string
  32.     {
  33.         return $this->type;
  34.     }
  35.     public function setType(?string $type): self
  36.     {
  37.         $this->type $type;
  38.         return $this;
  39.     }
  40.     public function getEmail(): ?string
  41.     {
  42.         return $this->email;
  43.     }
  44.     public function setEmail(?string $email): self
  45.     {
  46.         $this->email $email;
  47.         return $this;
  48.     }
  49.     public function getSubject(): ?string
  50.     {
  51.         return $this->subject;
  52.     }
  53.     public function setSubject(?string $subject): self
  54.     {
  55.         $this->subject $subject;
  56.         return $this;
  57.     }
  58.     public function getContent(): ?string
  59.     {
  60.         return $this->content;
  61.     }
  62.     public function setContent(?string $content): self
  63.     {
  64.         $this->content $content;
  65.         return $this;
  66.     }
  67.     public function getReferenceData(): ?string
  68.     {
  69.         return $this->reference_data;
  70.     }
  71.     public function setReferenceData(?string $reference_data): self
  72.     {
  73.         $this->reference_data $reference_data;
  74.         return $this;
  75.     }
  76.     public function getDateCreated(): ?\DateTimeInterface
  77.     {
  78.         return $this->date_created;
  79.     }
  80.     public function setDateCreated(\DateTimeInterface $date_created): self
  81.     {
  82.         $this->date_created $date_created;
  83.         return $this;
  84.     }
  85.     public function getUser(): ?User
  86.     {
  87.         return $this->user;
  88.     }
  89.     public function setUser(?User $user): self
  90.     {
  91.         $this->user $user;
  92.         return $this;
  93.     }
  94. }