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.     /** @ORM\Column(type="string", length=255, unique=true) */
  17.     private $email;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getEmail(): ?string
  23.     {
  24.         return $this->email;
  25.     }
  26.     public function setEmail(string $email): self
  27.     {
  28.         $this->email $email;
  29.         return $this;
  30.     }
  31. }