src/Entity/User.php line 9

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