<?php
namespace App\Entity;
use App\Repository\UtilisateursRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=UtilisateursRepository::class)
*/
class Utilisateurs
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $login;
/**
* @ORM\Column(type="string", length=255)
*/
private $mdp;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $etat;
/**
* @ORM\ManyToOne(targetEntity="NiveauUtilisateur")
*/
private $niveau;
/**
* @ORM\Column(type="string", length=50)
*/
private $date_creation;
/**
* @ORM\Column(type="string", length=255)
*/
private $token;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $email;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getLogin(): ?string
{
return $this->login;
}
public function setLogin(string $login): self
{
$this->login = $login;
return $this;
}
public function getMdp(): ?string
{
return $this->mdp;
}
public function setMdp(string $mdp): self
{
$this->mdp = $mdp;
return $this;
}
public function getEtat(): ?int
{
return $this->etat;
}
public function setEtat(?int $etat): self
{
$this->etat = $etat;
return $this;
}
public function getNiveau(): ?NiveauUtilisateur
{
return $this->niveau;
}
public function setNiveau(?NiveauUtilisateur $niveau): self
{
$this->niveau = $niveau;
return $this;
}
public function getDateCreation(): ?string
{
return $this->date_creation;
}
public function setDateCreation(string $date_creation): self
{
$this->date_creation = $date_creation;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(string $token): self
{
$this->token = $token;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
}