src/Entity/NewsletterUser.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NewsletterUserRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=NewsletterUserRepository::class)
  7.  */
  8. class NewsletterUser
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, unique=true)
  18.      */
  19.     private $email;
  20.     /**
  21.      * @ORM\Column(type="datetime", nullable=true)
  22.      */
  23.     private $createdAt;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true)
  26.      */
  27.     private $isRgpd;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $isValid;
  32.     /**
  33.      * @ORM\Column(type="boolean")
  34.      */
  35.     private $isVerified;
  36.     /**
  37.      * @ORM\Column(type="boolean")
  38.      */
  39.     private $exportCsv;
  40.     public function __construct()
  41.     { 
  42.         $this->createdAt = new \DateTime();
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getEmail(): ?string
  49.     {
  50.         return $this->email;
  51.     }
  52.     public function setEmail(?string $email): self
  53.     {
  54.         $this->email $email;
  55.         return $this;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeInterface
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  62.     {
  63.         $this->createdAt $createdAt;
  64.         return $this;
  65.     }
  66.     public function getIsRgpd(): ?bool
  67.     {
  68.         return $this->isRgpd;
  69.     }
  70.     public function setIsRgpd(?bool $isRgpd): self
  71.     {
  72.         $this->isRgpd $isRgpd;
  73.         return $this;
  74.     }
  75.     public function getIsValid(): ?bool
  76.     {
  77.         return $this->isValid;
  78.     }
  79.     public function setIsValid(?bool $isValid): self
  80.     {
  81.         $this->isValid $isValid;
  82.         return $this;
  83.     }
  84.     public function getIsVerified(): ?bool
  85.     {
  86.         return $this->isVerified;
  87.     }
  88.     public function setIsVerified(bool $isVerified): self
  89.     {
  90.         $this->isVerified $isVerified;
  91.         return $this;
  92.     }
  93.     public function isExportCsv(): ?bool
  94.     {
  95.         return $this->exportCsv;
  96.     }
  97.     public function setExportCsv(bool $exportCsv): self
  98.     {
  99.         $this->exportCsv $exportCsv;
  100.         return $this;
  101.     }
  102. }