src/Entity/utilisateur/Utilisateurs.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\utilisateur;
  3. use App\Entity\api\ApiUtilisateur;
  4. use App\Entity\att\AttGroupe;
  5. use App\Entity\utilisateur\UtilisateurSociete;
  6. use App\Repository\administration\UtilisateursRepository;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity(repositoryClass=UtilisateursRepository::class)
  12.  */
  13. class Utilisateurs
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id_utilisateur", type="bigint", nullable=false)
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue()
  21.      */
  22.     private $idUtilisateur;
  23.     /**
  24.      * @var string|null
  25.      *
  26.      * @ORM\Column(name="nom", type="string", length=50, nullable=true)
  27.      */
  28.     private $nom;
  29.     /**
  30.      * @var string|null
  31.      *
  32.      * @ORM\Column(name="prenom", type="string", length=50, nullable=true)
  33.      */
  34.     private $prenom;
  35.     /**
  36.      * @var string|null
  37.      *
  38.      * @ORM\Column(name="mail", type="string", length=255, nullable=true)
  39.      */
  40.     private $mail;
  41.     /**
  42.      * @var string|null
  43.      *
  44.      * @ORM\Column(name="fonction", type="string", length=255, nullable=true)
  45.      */
  46.     private $fonction;
  47.     /**
  48.      * @var string|null
  49.      *
  50.      * @ORM\Column(name="commentaire", type="string", length=255, nullable=true)
  51.      */
  52.     private $commentaire;
  53.     /**
  54.      * @var string|null
  55.      *
  56.      * @ORM\Column(name="identifiant", type="string", length=255, nullable=true)
  57.      */
  58.     private $identifiant;
  59.     /**
  60.      * @var string|null
  61.      *
  62.      * @ORM\Column(name="mot_de_passe", type="string", length=255, nullable=true)
  63.      */
  64.     private $motDePasse;
  65.     /**
  66.      * @var string|null
  67.      *
  68.      * @ORM\Column(name="ancien_mot_de_passe", type="string", length=255, nullable=true)
  69.      */
  70.     private $AncienMotDePasse;
  71.     /**
  72.      * @var bool
  73.      *
  74.      * @ORM\Column(name="nb_essai_avant_bloquage", type="integer", nullable=false)
  75.      */
  76.     private $nbEssaiAvantBloquage 3;
  77.     /**
  78.      * @var \DateTime|null
  79.      *
  80.      * @ORM\Column(name="date_fin_compte", type="date", nullable=true)
  81.      */
  82.     private $dateFinCompte;
  83.     /**
  84.      * @var bool
  85.      *
  86.      * @ORM\Column(name="compte_desactive", type="boolean", nullable=false)
  87.      */
  88.     private $compteDesactive '0';
  89.     /**
  90.      * @var UtilisateurSociete
  91.      *
  92.      * @ORM\ManyToOne(targetEntity=UtilisateurSociete::class)
  93.      * @ORM\JoinColumns({
  94.      *   @ORM\JoinColumn(name="fk_utilisateur_societe_id", referencedColumnName="id_utilisateur_societe")
  95.      * })
  96.      */
  97.     private $fkUtilisateurSociete;
  98.     /**
  99.      * @var UtilisateurProfil
  100.      *
  101.      * @ORM\ManyToOne(targetEntity="UtilisateurProfil", cascade={"persist"})
  102.      * @ORM\JoinColumns({
  103.      *   @ORM\JoinColumn(name="fk_utilisateur_profil_id", referencedColumnName="id_utilisateur_profil")
  104.      * })
  105.      */
  106.     private $fkUtilisateurProfil;
  107.     /**
  108.      * @var bool
  109.      *
  110.      * @ORM\Column(name="acces_memo", type="boolean", nullable=false)
  111.      */
  112.     private $accesMemo '0';
  113.     /**
  114.     * @ORM\ManyToOne(targetEntity="App\Entity\att\AttGroupe", cascade={"persist"})
  115.     * @ORM\JoinColumns({
  116.      *   @ORM\JoinColumn(name="fk_att_groupe_id", referencedColumnName="id_att_groupe")
  117.     * })
  118.     */
  119.     private $fkAttGroupeId;
  120.     /**
  121.      * @ORM\Column(type="datetime", nullable=false)
  122.      */
  123.     private $derniereConnexion;
  124.     /**
  125.      * @var bool
  126.      *
  127.      * @ORM\Column(name="view_quick_cc", type="boolean", nullable=false)
  128.      */
  129.     private $viewQuickCc '0';
  130.     public function getIdUtilisateur(): int
  131.     {
  132.         return $this->idUtilisateur;
  133.     }
  134.     public function setIdUtilisateur(int $idUtilisateur): void
  135.     {
  136.         $this->idUtilisateur $idUtilisateur;
  137.     }
  138.     public function getNom(): ?string
  139.     {
  140.         return $this->nom;
  141.     }
  142.     public function setNom(?string $nom): self
  143.     {
  144.         $this->nom $nom;
  145.         return $this;
  146.     }
  147.     public function getPrenom(): ?string
  148.     {
  149.         return $this->prenom;
  150.     }
  151.     public function setPrenom(?string $prenom): self
  152.     {
  153.         $this->prenom $prenom;
  154.         return $this;
  155.     }
  156.     public function getMail(): ?string
  157.     {
  158.         return $this->mail;
  159.     }
  160.     public function setMail(?string $mail): self
  161.     {
  162.         $this->mail $mail;
  163.         return $this;
  164.     }
  165.     public function getFonction(): ?string
  166.     {
  167.         return $this->fonction;
  168.     }
  169.     public function setFonction(?string $fonction): self
  170.     {
  171.         $this->fonction $fonction;
  172.         return $this;
  173.     }
  174.     public function getCommentaire(): ?string
  175.     {
  176.         return $this->commentaire;
  177.     }
  178.     public function setCommentaire(?string $commentaire): self
  179.     {
  180.         $this->commentaire $commentaire;
  181.         return $this;
  182.     }
  183.     public function getIdentifiant(): ?string
  184.     {
  185.         return $this->identifiant;
  186.     }
  187.     public function setIdentifiant(?string $identifiant): self
  188.     {
  189.         $this->identifiant $identifiant;
  190.         return $this;
  191.     }
  192.     public function getMotDePasse(): ?string
  193.     {
  194.         return $this->motDePasse;
  195.     }
  196.     public function setMotDePasse(?string $motDePasse): self
  197.     {
  198.         $this->motDePasse $motDePasse;
  199.         return $this;
  200.     }
  201.     public function getAncienMotDePasse(): ?string
  202.     {
  203.         return $this->AncienMotDePasse;
  204.     }
  205.     public function setAncienMotDePasse(?string $AncienMotDePasse): self
  206.     {
  207.         $this->AncienMotDePasse $AncienMotDePasse;
  208.         return $this;
  209.     }
  210.     public function getNbEssaiAvantBloquage(): ?int
  211.     {
  212.         return $this->nbEssaiAvantBloquage;
  213.     }
  214.     public function setNbEssaiAvantBloquage(int $nbEssaiAvantBloquage): self
  215.     {
  216.         $this->nbEssaiAvantBloquage $nbEssaiAvantBloquage;
  217.         return $this;
  218.     }
  219.     public function getDateFinCompte(): ?\DateTimeInterface
  220.     {
  221.         return $this->dateFinCompte;
  222.     }
  223.     public function setDateFinCompte(?\DateTimeInterface $dateFinCompte): self
  224.     {
  225.         $this->dateFinCompte $dateFinCompte;
  226.         return $this;
  227.     }
  228.     public function getCompteDesactive(): ?bool
  229.     {
  230.         return $this->compteDesactive;
  231.     }
  232.     public function setCompteDesactive(bool $compteDesactive): self
  233.     {
  234.         $this->compteDesactive $compteDesactive;
  235.         return $this;
  236.     }
  237.     public function getFkUtilisateurSociete(): ?UtilisateurSociete
  238.     {
  239.         return $this->fkUtilisateurSociete;
  240.     }
  241.     public function setFkUtilisateurSociete(?UtilisateurSociete $fkUtilisateurSociete): self
  242.     {
  243.         $this->fkUtilisateurSociete $fkUtilisateurSociete;
  244.         return $this;
  245.     }
  246.     public function getFkUtilisateurProfil(): ?UtilisateurProfil
  247.     {
  248.         return $this->fkUtilisateurProfil;
  249.     }
  250.     public function setFkUtilisateurProfil(?UtilisateurProfil $fkUtilisateurProfil): self
  251.     {
  252.         $this->fkUtilisateurProfil $fkUtilisateurProfil;
  253.         return $this;
  254.     }
  255.     public function getAccesMemo(): ?bool
  256.     {
  257.         return $this->accesMemo;
  258.     }
  259.     public function setAccesMemo(?bool $accesMemo): self
  260.     {
  261.         $this->accesMemo $accesMemo;
  262.         return $this;
  263.     }
  264.     public function getFkAttGroupeId(): ?AttGroupe
  265.     {
  266.         return $this->fkAttGroupeId;
  267.     }
  268.     public function setFkAttGroupeId(?AttGroupe $fkAttGroupeId): self
  269.     {
  270.         $this->fkAttGroupeId $fkAttGroupeId;
  271.         return $this;
  272.     }
  273.     public function getDerniereConnexion(): ?\DateTimeInterface
  274.     {
  275.         return $this->derniereConnexion;
  276.     }
  277.     public function setDerniereConnexion(?\DateTimeInterface $derniereConnexion): self
  278.     {
  279.         $this->derniereConnexion $derniereConnexion;
  280.         return $this;
  281.     }
  282.     public function __toString(): string
  283.     {
  284.         return $this->getPrenom()." ".$this->getNom();
  285.     }
  286.     public function getRoles(): array
  287.     {
  288.         $roles[] = 'ROLE_USER';
  289.         return array_unique($roles);
  290.     }
  291.     public function getViewQuickCc(): ?bool
  292.     {
  293.         return $this->viewQuickCc;
  294.     }
  295.     public function setViewQuickCc(?bool $viewQuickCc): self
  296.     {
  297.         $this->viewQuickCc $viewQuickCc;
  298.         return $this;
  299.     }
  300. }