src/Entity/InscritNewsletter.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InscritNewsletterRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassInscritNewsletterRepository::class)]
  6. class InscritNewsletter
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private int $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private ?string $emailnull;
  14.     #[ORM\Column(type'datetime'nullabletrue)]
  15.     private mixed $date;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private ?string $prenomnull;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private ?string $nomnull;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getEmail(): ?string
  25.     {
  26.         return $this->email;
  27.     }
  28.     public function setEmail(?string $email): self
  29.     {
  30.         $this->email $email;
  31.         return $this;
  32.     }
  33.     public function getDate(): ?\DateTimeInterface
  34.     {
  35.         return $this->date;
  36.     }
  37.     public function setDate(?\DateTimeInterface $date): self
  38.     {
  39.         $this->date $date;
  40.         return $this;
  41.     }
  42.     public function getPrenom(): ?string
  43.     {
  44.         return $this->prenom;
  45.     }
  46.     public function setPrenom(?string $prenom): self
  47.     {
  48.         $this->prenom $prenom;
  49.         return $this;
  50.     }
  51.     public function getNom(): ?string
  52.     {
  53.         return $this->nom;
  54.     }
  55.     public function setNom(?string $nom): self
  56.     {
  57.         $this->nom $nom;
  58.         return $this;
  59.     }
  60. }