src/Entity/Utilisateurs.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UtilisateursRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=UtilisateursRepository::class)
  7.  */
  8. class Utilisateurs
  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, nullable=true)
  18.      */
  19.     private $nom;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $prenom;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $login;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $mdp;
  32.     /**
  33.      * @ORM\Column(type="integer", nullable=true)
  34.      */
  35.     private $etat;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="NiveauUtilisateur")
  38.      */
  39.     private $niveau;
  40.     /**
  41.      * @ORM\Column(type="string", length=50)
  42.      */
  43.     private $date_creation;
  44.     /**
  45.      * @ORM\Column(type="string", length=255)
  46.      */
  47.     private $token;
  48.     /**
  49.      * @ORM\Column(type="string", length=255,nullable=true)
  50.      */
  51.     private $email;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getNom(): ?string
  57.     {
  58.         return $this->nom;
  59.     }
  60.     public function setNom(?string $nom): self
  61.     {
  62.         $this->nom $nom;
  63.         return $this;
  64.     }
  65.     public function getPrenom(): ?string
  66.     {
  67.         return $this->prenom;
  68.     }
  69.     public function setPrenom(?string $prenom): self
  70.     {
  71.         $this->prenom $prenom;
  72.         return $this;
  73.     }
  74.     public function getLogin(): ?string
  75.     {
  76.         return $this->login;
  77.     }
  78.     public function setLogin(string $login): self
  79.     {
  80.         $this->login $login;
  81.         return $this;
  82.     }
  83.     public function getMdp(): ?string
  84.     {
  85.         return $this->mdp;
  86.     }
  87.     public function setMdp(string $mdp): self
  88.     {
  89.         $this->mdp $mdp;
  90.         return $this;
  91.     }
  92.     public function getEtat(): ?int
  93.     {
  94.         return $this->etat;
  95.     }
  96.     public function setEtat(?int $etat): self
  97.     {
  98.         $this->etat $etat;
  99.         return $this;
  100.     }
  101.     public function getNiveau(): ?NiveauUtilisateur
  102.     {
  103.         return $this->niveau;
  104.     }
  105.     public function setNiveau(?NiveauUtilisateur $niveau): self
  106.     {
  107.         $this->niveau $niveau;
  108.         return $this;
  109.     }
  110.     public function getDateCreation(): ?string
  111.     {
  112.         return $this->date_creation;
  113.     }
  114.     public function setDateCreation(string $date_creation): self
  115.     {
  116.         $this->date_creation $date_creation;
  117.         return $this;
  118.     }
  119.     public function getToken(): ?string
  120.     {
  121.         return $this->token;
  122.     }
  123.     public function setToken(string $token): self
  124.     {
  125.         $this->token $token;
  126.         return $this;
  127.     }
  128.     public function getEmail(): ?string
  129.     {
  130.         return $this->email;
  131.     }
  132.     public function setEmail(?string $email): self
  133.     {
  134.         $this->email $email;
  135.         return $this;
  136.     }
  137.     
  138. }