src/Entity/Personne.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PersonneRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PersonneRepository::class)
  9.  */
  10. class Personne
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $nom;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $prenom;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $email;
  30.     public function __construct()
  31.     {
  32.         //$this->reponsePersonnes = new ArrayCollection();
  33.        // $this->testB1s = new ArrayCollection();
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getNom(): ?string
  40.     {
  41.         return $this->nom;
  42.     }
  43.     public function setNom(string $nom): self
  44.     {
  45.         $this->nom $nom;
  46.         return $this;
  47.     }
  48.     public function getPrenom(): ?string
  49.     {
  50.         return $this->prenom;
  51.     }
  52.     public function setPrenom(string $prenom): self
  53.     {
  54.         $this->prenom $prenom;
  55.         return $this;
  56.     }
  57.     public function getEmail(): ?string
  58.     {
  59.         return $this->email;
  60.     }
  61.     public function setEmail(string $email): self
  62.     {
  63.         $this->email $email;
  64.         return $this;
  65.     }
  66.    
  67.    
  68. }