src/Entity/Newsletter.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NewsletterRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=NewsletterRepository::class)
  7.  */
  8. class Newsletter
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=64)
  18.      */
  19.     private $email;
  20.     /**
  21.      * @ORM\Column(type="datetime_immutable")
  22.      */
  23.     private $createdAt;
  24.     /**
  25.      * @ORM\Column(type="string", length=45, nullable=true)
  26.      */
  27.     private $ip;
  28.     /**
  29.      * @ORM\Column(type="datetime_immutable", nullable=true)
  30.      */
  31.     private $lastSentAt;
  32.     /**
  33.      * @ORM\Column(type="integer", nullable=true)
  34.      */
  35.     private $lastEmailId;
  36.     /**
  37.      * @ORM\Column(type="decimal", precision=2, scale=1, nullable=true)
  38.      */
  39.     private $score;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getEmail(): ?string
  45.     {
  46.         return $this->email;
  47.     }
  48.     public function setEmail(string $email): self
  49.     {
  50.         $this->email $email;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62.     public function getIp(): ?string
  63.     {
  64.         return $this->ip;
  65.     }
  66.     public function setIp(?string $ip): self
  67.     {
  68.         $this->ip $ip;
  69.         return $this;
  70.     }
  71.     public function getLastSentAt(): ?\DateTimeImmutable
  72.     {
  73.         return $this->lastSentAt;
  74.     }
  75.     public function setLastSentAt(?\DateTimeImmutable $lastSentAt): self
  76.     {
  77.         $this->lastSentAt $lastSentAt;
  78.         return $this;
  79.     }
  80.     public function getLastEmailId(): ?int
  81.     {
  82.         return $this->lastEmailId;
  83.     }
  84.     public function setLastEmailId(?int $lastEmailId): self
  85.     {
  86.         $this->lastEmailId $lastEmailId;
  87.         return $this;
  88.     }
  89.     public function getScore(): ?string
  90.     {
  91.         return $this->score;
  92.     }
  93.     public function setScore(?string $score): self
  94.     {
  95.         $this->score $score;
  96.         return $this;
  97.     }
  98. }