src/Entity/Planning/User.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Planning;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  5. use Symfony\Component\Security\Core\User\UserInterface;
  6. /**
  7.  * User
  8.  *
  9.  * @ORM\Table(name="user", uniqueConstraints={@ORM\UniqueConstraint(name="login", columns={"login"})}, indexes={@ORM\Index(name="ville_id", columns={"ville_id"}), @ORM\Index(name="niveau_id", columns={"niveau_id"}), @ORM\Index(name="mutuelle_id", columns={"mutuelle_id"}), @ORM\Index(name="FK_user_langue", columns={"langue_id"}), @ORM\Index(name="fonction_id", columns={"fonction_id"}), @ORM\Index(name="type_contrat_id", columns={"type_contrat_id"})})
  10.  * @ORM\Entity(repositoryClass="App\Repository\Planning\UserRepository")
  11.  */
  12. class User implements UserInterfacePasswordAuthenticatedUserInterface
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="login", type="string", length=30, nullable=false)
  26.      */
  27.     private $login;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="password", type="string", length=128, nullable=true, options={"fixed"=true})
  32.      */
  33.     private $password;
  34.     /**
  35.      * @var bool
  36.      *
  37.      * @ORM\Column(name="password_temp", type="boolean", nullable=false, options={"default"="1"})
  38.      */
  39.     private $passwordTemp true;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="nom", type="string", length=30, nullable=false)
  44.      */
  45.     private $nom;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="prenom", type="string", length=30, nullable=false)
  50.      */
  51.     private $prenom;
  52.     /**
  53.      * @var string|null
  54.      *
  55.      * @ORM\Column(name="surnom", type="string", length=30, nullable=true)
  56.      */
  57.     private $surnom;
  58.     /**
  59.      * @var string|null
  60.      *
  61.      * @ORM\Column(name="adresse1", type="string", length=38, nullable=true)
  62.      */
  63.     private $adresse1;
  64.     /**
  65.      * @var string|null
  66.      *
  67.      * @ORM\Column(name="adresse2", type="string", length=38, nullable=true)
  68.      */
  69.     private $adresse2;
  70.     /**
  71.      * @var bool
  72.      *
  73.      * @ORM\Column(name="envoi_sms", type="boolean", nullable=false)
  74.      */
  75.     private $envoiSms '0';
  76.     /**
  77.      * @var string|null
  78.      *
  79.      * @ORM\Column(name="portable", type="string", length=15, nullable=true)
  80.      */
  81.     private $portable;
  82.     /**
  83.      * @var string|null
  84.      *
  85.      * @ORM\Column(name="fixe", type="string", length=15, nullable=true)
  86.      */
  87.     private $fixe;
  88.     /**
  89.      * @var string
  90.      *
  91.      * @ORM\Column(name="email", type="string", length=75, nullable=false)
  92.      */
  93.     private $email;
  94.     /**
  95.      * @var int|null
  96.      *
  97.      * @ORM\Column(name="vacations", type="smallint", nullable=true, options={"unsigned"=true})
  98.      */
  99.     private $vacations;
  100.     /**
  101.      * @var string
  102.      *
  103.      * @ORM\Column(name="heures", type="decimal", precision=5, scale=2, nullable=false)
  104.      */
  105.     private $heures;
  106.     /**
  107.      * @var string|null
  108.      *
  109.      * @ORM\Column(name="taux_horaire", type="decimal", precision=8, scale=4, nullable=true)
  110.      */
  111.     private $tauxHoraire;
  112.     /**
  113.      * @var string|null
  114.      *
  115.      * @ORM\Column(name="brut_minimum", type="decimal", precision=8, scale=4, nullable=true)
  116.      */
  117.     private $brutMinimum;
  118.     /**
  119.      * @var string|null
  120.      *
  121.      * @ORM\Column(name="prime_anciennete", type="decimal", precision=8, scale=2, nullable=true)
  122.      */
  123.     private $primeAnciennete;
  124.     /**
  125.      * @var int|null
  126.      *
  127.      * @ORM\Column(name="echelon", type="smallint", nullable=true, options={"unsigned"=true})
  128.      */
  129.     private $echelon;
  130.     /**
  131.      * @var bool|null
  132.      *
  133.      * @ORM\Column(name="navigo", type="boolean", nullable=true)
  134.      */
  135.     private $navigo;
  136.     /**
  137.      * @var string
  138.      *
  139.      * @ORM\Column(name="navigo_montant", type="decimal", precision=8, scale=2, nullable=false, options={"default"="0.00"})
  140.      */
  141.     private $navigoMontant '0.00';
  142.     /**
  143.      * @var string|null
  144.      *
  145.      * @ORM\Column(name="mutuelle_comment", type="text", length=65535, nullable=true)
  146.      */
  147.     private $mutuelleComment;
  148.     /**
  149.      * @var \DateTime|null
  150.      *
  151.      * @ORM\Column(name="date_entree", type="date", nullable=true)
  152.      */
  153.     private $dateEntree;
  154.     /**
  155.      * @var \DateTime|null
  156.      *
  157.      * @ORM\Column(name="date_sortie", type="date", nullable=true)
  158.      */
  159.     private $dateSortie;
  160.     /**
  161.      * @var \DateTime|null
  162.      *
  163.      * @ORM\Column(name="date_essai", type="date", nullable=true)
  164.      */
  165.     private $dateEssai;
  166.     /**
  167.      * @var bool
  168.      *
  169.      * @ORM\Column(name="etudiant", type="boolean", nullable=false)
  170.      */
  171.     private $etudiant '0';
  172.     /**
  173.      * @var int|null
  174.      *
  175.      * @ORM\Column(name="annee_sortie", type="smallint", nullable=true, options={"unsigned"=true})
  176.      */
  177.     private $anneeSortie;
  178.     /**
  179.      * @var string|null
  180.      *
  181.      * @ORM\Column(name="numero_ss", type="string", length=15, nullable=true, options={"fixed"=true})
  182.      */
  183.     private $numeroSs;
  184.     /**
  185.      * @var string|null
  186.      *
  187.      * @ORM\Column(name="astreinte_derangee", type="decimal", precision=8, scale=4, nullable=true)
  188.      */
  189.     private $astreinteDerangee;
  190.     /**
  191.      * @var string|null
  192.      *
  193.      * @ORM\Column(name="astreinte_non_derangee", type="decimal", precision=8, scale=4, nullable=true)
  194.      */
  195.     private $astreinteNonDerangee;
  196.     /**
  197.      * @var string|null
  198.      *
  199.      * @ORM\Column(name="heures_vacation", type="string", length=0, nullable=true)
  200.      */
  201.     private $heuresVacation;
  202.     /**
  203.      * @var string|null
  204.      *
  205.      * @ORM\Column(name="taux_prime", type="decimal", precision=5, scale=2, nullable=true)
  206.      */
  207.     private $tauxPrime;
  208.     /**
  209.      * @var string|null
  210.      *
  211.      * @ORM\Column(name="indemnite_km", type="decimal", precision=6, scale=2, nullable=true)
  212.      */
  213.     private $indemniteKm;
  214.     /**
  215.      * @var bool|null
  216.      *
  217.      * @ORM\Column(name="paye_email", type="boolean", nullable=true)
  218.      */
  219.     private $payeEmail;
  220.     /**
  221.      * @var string|null
  222.      *
  223.      * @ORM\Column(name="matricule", type="string", length=20, nullable=true)
  224.      */
  225.     private $matricule;
  226.     /**
  227.      * @var bool
  228.      *
  229.      * @ORM\Column(name="no_dispo", type="boolean", nullable=false)
  230.      */
  231.     private $noDispo '0';
  232.     /**
  233.      * @var bool
  234.      *
  235.      * @ORM\Column(name="contrat_signe", type="boolean", nullable=false)
  236.      */
  237.     private $contratSigne '0';
  238.     /**
  239.      * @var bool
  240.      *
  241.      * @ORM\Column(name="admin_rights", type="boolean", nullable=false)
  242.      */
  243.     private $adminRights '0';
  244.     /**
  245.      * @var string|null
  246.      *
  247.      * @ORM\Column(name="commentaire_planning", type="text", length=65535, nullable=true)
  248.      */
  249.     private $commentairePlanning;
  250.     /**
  251.      * @var string|null
  252.      *
  253.      * @ORM\Column(name="info_complementaire", type="text", length=65535, nullable=true)
  254.      */
  255.     private $infoComplementaire;
  256.     /**
  257.      * @var bool
  258.      *
  259.      * @ORM\Column(name="active", type="boolean", nullable=false, options={"default"="1"})
  260.      */
  261.     private $active true;
  262.     /**
  263.      * @var bool
  264.      *
  265.      * @ORM\Column(name="visible", type="boolean", nullable=false, options={"default"="1"})
  266.      */
  267.     private $visible true;
  268.     /**
  269.      * @var \DateTime
  270.      *
  271.      * @ORM\Column(name="date_creation", type="datetime", nullable=false)
  272.      */
  273.     private $dateCreation;
  274.     /**
  275.      * @var \DateTime
  276.      *
  277.      * @ORM\Column(name="date_modification", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  278.      */
  279.     private $dateModification;
  280.     /**
  281.      * @var \Langue
  282.      *
  283.      * @ORM\ManyToOne(targetEntity="Langue")
  284.      * @ORM\JoinColumns({
  285.      *   @ORM\JoinColumn(name="langue_id", referencedColumnName="id")
  286.      * })
  287.      */
  288.     private $langue;
  289.     /**
  290.      * @var \Ville
  291.      *
  292.      * @ORM\ManyToOne(targetEntity="Ville")
  293.      * @ORM\JoinColumns({
  294.      *   @ORM\JoinColumn(name="ville_id", referencedColumnName="id")
  295.      * })
  296.      */
  297.     private $ville;
  298.     /**
  299.      * @var \Mutuelle
  300.      *
  301.      * @ORM\ManyToOne(targetEntity="Mutuelle")
  302.      * @ORM\JoinColumns({
  303.      *   @ORM\JoinColumn(name="mutuelle_id", referencedColumnName="id")
  304.      * })
  305.      */
  306.     private $mutuelle;
  307.     /**
  308.      * @var \UserNiveau
  309.      *
  310.      * @ORM\ManyToOne(targetEntity="UserNiveau")
  311.      * @ORM\JoinColumns({
  312.      *   @ORM\JoinColumn(name="niveau_id", referencedColumnName="id")
  313.      * })
  314.      */
  315.     private $niveau;
  316.     /**
  317.      * @var \UserFonction
  318.      *
  319.      * @ORM\ManyToOne(targetEntity="UserFonction")
  320.      * @ORM\JoinColumns({
  321.      *   @ORM\JoinColumn(name="fonction_id", referencedColumnName="id")
  322.      * })
  323.      */
  324.     private $fonction;
  325.     /**
  326.      * @var \TypeContrat
  327.      *
  328.      * @ORM\ManyToOne(targetEntity="TypeContrat")
  329.      * @ORM\JoinColumns({
  330.      *   @ORM\JoinColumn(name="type_contrat_id", referencedColumnName="id")
  331.      * })
  332.      */
  333.     private $typeContrat;
  334.     private $roles = [];
  335.     public function getId(): ?int
  336.     {
  337.         return $this->id;
  338.     }
  339.     public function getLogin(): ?string
  340.     {
  341.         return $this->login;
  342.     }
  343.     public function setLogin(string $login): self
  344.     {
  345.         $this->login $login;
  346.         return $this;
  347.     }
  348.     public function getPassword(): ?string
  349.     {
  350.         return $this->password;
  351.     }
  352.     public function setPassword(?string $password): self
  353.     {
  354.         $this->password $password;
  355.         return $this;
  356.     }
  357.     public function getPasswordTemp(): ?bool
  358.     {
  359.         return $this->passwordTemp;
  360.     }
  361.     public function setPasswordTemp(bool $passwordTemp): self
  362.     {
  363.         $this->passwordTemp $passwordTemp;
  364.         return $this;
  365.     }
  366.     public function getNom(): ?string
  367.     {
  368.         return $this->nom;
  369.     }
  370.     public function setNom(string $nom): self
  371.     {
  372.         $this->nom $nom;
  373.         return $this;
  374.     }
  375.     public function getPrenom(): ?string
  376.     {
  377.         return $this->prenom;
  378.     }
  379.     public function setPrenom(string $prenom): self
  380.     {
  381.         $this->prenom $prenom;
  382.         return $this;
  383.     }
  384.     public function getSurnom(): ?string
  385.     {
  386.         return $this->surnom;
  387.     }
  388.     public function setSurnom(?string $surnom): self
  389.     {
  390.         $this->surnom $surnom;
  391.         return $this;
  392.     }
  393.     public function getAdresse1(): ?string
  394.     {
  395.         return $this->adresse1;
  396.     }
  397.     public function setAdresse1(?string $adresse1): self
  398.     {
  399.         $this->adresse1 $adresse1;
  400.         return $this;
  401.     }
  402.     public function getAdresse2(): ?string
  403.     {
  404.         return $this->adresse2;
  405.     }
  406.     public function setAdresse2(?string $adresse2): self
  407.     {
  408.         $this->adresse2 $adresse2;
  409.         return $this;
  410.     }
  411.     public function getEnvoiSms(): ?bool
  412.     {
  413.         return $this->envoiSms;
  414.     }
  415.     public function setEnvoiSms(bool $envoiSms): self
  416.     {
  417.         $this->envoiSms $envoiSms;
  418.         return $this;
  419.     }
  420.     public function getPortable(): ?string
  421.     {
  422.         return $this->portable;
  423.     }
  424.     public function setPortable(?string $portable): self
  425.     {
  426.         $this->portable $portable;
  427.         return $this;
  428.     }
  429.     public function getFixe(): ?string
  430.     {
  431.         return $this->fixe;
  432.     }
  433.     public function setFixe(?string $fixe): self
  434.     {
  435.         $this->fixe $fixe;
  436.         return $this;
  437.     }
  438.     public function getEmail(): ?string
  439.     {
  440.         return $this->email;
  441.     }
  442.     public function setEmail(string $email): self
  443.     {
  444.         $this->email $email;
  445.         return $this;
  446.     }
  447.     public function getVacations(): ?int
  448.     {
  449.         return $this->vacations;
  450.     }
  451.     public function setVacations(?int $vacations): self
  452.     {
  453.         $this->vacations $vacations;
  454.         return $this;
  455.     }
  456.     public function getHeures(): ?string
  457.     {
  458.         return $this->heures;
  459.     }
  460.     public function setHeures(string $heures): self
  461.     {
  462.         $this->heures $heures;
  463.         return $this;
  464.     }
  465.     public function getTauxHoraire(): ?string
  466.     {
  467.         return $this->tauxHoraire;
  468.     }
  469.     public function setTauxHoraire(?string $tauxHoraire): self
  470.     {
  471.         $this->tauxHoraire $tauxHoraire;
  472.         return $this;
  473.     }
  474.     public function getBrutMinimum(): ?string
  475.     {
  476.         return $this->brutMinimum;
  477.     }
  478.     public function setBrutMinimum(?string $brutMinimum): self
  479.     {
  480.         $this->brutMinimum $brutMinimum;
  481.         return $this;
  482.     }
  483.     public function getPrimeAnciennete(): ?string
  484.     {
  485.         return $this->primeAnciennete;
  486.     }
  487.     public function setPrimeAnciennete(?string $primeAnciennete): self
  488.     {
  489.         $this->primeAnciennete $primeAnciennete;
  490.         return $this;
  491.     }
  492.     public function getEchelon(): ?int
  493.     {
  494.         return $this->echelon;
  495.     }
  496.     public function setEchelon(?int $echelon): self
  497.     {
  498.         $this->echelon $echelon;
  499.         return $this;
  500.     }
  501.     public function getNavigo(): ?bool
  502.     {
  503.         return $this->navigo;
  504.     }
  505.     public function setNavigo(?bool $navigo): self
  506.     {
  507.         $this->navigo $navigo;
  508.         return $this;
  509.     }
  510.     public function getNavigoMontant(): ?string
  511.     {
  512.         return $this->navigoMontant;
  513.     }
  514.     public function setNavigoMontant(string $navigoMontant): self
  515.     {
  516.         $this->navigoMontant $navigoMontant;
  517.         return $this;
  518.     }
  519.     public function getMutuelleComment(): ?string
  520.     {
  521.         return $this->mutuelleComment;
  522.     }
  523.     public function setMutuelleComment(?string $mutuelleComment): self
  524.     {
  525.         $this->mutuelleComment $mutuelleComment;
  526.         return $this;
  527.     }
  528.     public function getDateEntree(): ?\DateTimeInterface
  529.     {
  530.         return $this->dateEntree;
  531.     }
  532.     public function setDateEntree(?\DateTimeInterface $dateEntree): self
  533.     {
  534.         $this->dateEntree $dateEntree;
  535.         return $this;
  536.     }
  537.     public function getDateSortie(): ?\DateTimeInterface
  538.     {
  539.         return $this->dateSortie;
  540.     }
  541.     public function setDateSortie(?\DateTimeInterface $dateSortie): self
  542.     {
  543.         $this->dateSortie $dateSortie;
  544.         return $this;
  545.     }
  546.     public function getDateEssai(): ?\DateTimeInterface
  547.     {
  548.         return $this->dateEssai;
  549.     }
  550.     public function setDateEssai(?\DateTimeInterface $dateEssai): self
  551.     {
  552.         $this->dateEssai $dateEssai;
  553.         return $this;
  554.     }
  555.     public function getEtudiant(): ?bool
  556.     {
  557.         return $this->etudiant;
  558.     }
  559.     public function setEtudiant(bool $etudiant): self
  560.     {
  561.         $this->etudiant $etudiant;
  562.         return $this;
  563.     }
  564.     public function getAnneeSortie(): ?int
  565.     {
  566.         return $this->anneeSortie;
  567.     }
  568.     public function setAnneeSortie(?int $anneeSortie): self
  569.     {
  570.         $this->anneeSortie $anneeSortie;
  571.         return $this;
  572.     }
  573.     public function getNumeroSs(): ?string
  574.     {
  575.         return $this->numeroSs;
  576.     }
  577.     public function setNumeroSs(?string $numeroSs): self
  578.     {
  579.         $this->numeroSs $numeroSs;
  580.         return $this;
  581.     }
  582.     public function getAstreinteDerangee(): ?string
  583.     {
  584.         return $this->astreinteDerangee;
  585.     }
  586.     public function setAstreinteDerangee(?string $astreinteDerangee): self
  587.     {
  588.         $this->astreinteDerangee $astreinteDerangee;
  589.         return $this;
  590.     }
  591.     public function getAstreinteNonDerangee(): ?string
  592.     {
  593.         return $this->astreinteNonDerangee;
  594.     }
  595.     public function setAstreinteNonDerangee(?string $astreinteNonDerangee): self
  596.     {
  597.         $this->astreinteNonDerangee $astreinteNonDerangee;
  598.         return $this;
  599.     }
  600.     public function getHeuresVacation(): ?string
  601.     {
  602.         return $this->heuresVacation;
  603.     }
  604.     public function setHeuresVacation(?string $heuresVacation): self
  605.     {
  606.         $this->heuresVacation $heuresVacation;
  607.         return $this;
  608.     }
  609.     public function getTauxPrime(): ?string
  610.     {
  611.         return $this->tauxPrime;
  612.     }
  613.     public function setTauxPrime(?string $tauxPrime): self
  614.     {
  615.         $this->tauxPrime $tauxPrime;
  616.         return $this;
  617.     }
  618.     public function getIndemniteKm(): ?string
  619.     {
  620.         return $this->indemniteKm;
  621.     }
  622.     public function setIndemniteKm(?string $indemniteKm): self
  623.     {
  624.         $this->indemniteKm $indemniteKm;
  625.         return $this;
  626.     }
  627.     public function getPayeEmail(): ?bool
  628.     {
  629.         return $this->payeEmail;
  630.     }
  631.     public function setPayeEmail(?bool $payeEmail): self
  632.     {
  633.         $this->payeEmail $payeEmail;
  634.         return $this;
  635.     }
  636.     public function getMatricule(): ?string
  637.     {
  638.         return $this->matricule;
  639.     }
  640.     public function setMatricule(?string $matricule): self
  641.     {
  642.         $this->matricule $matricule;
  643.         return $this;
  644.     }
  645.     public function getNoDispo(): ?bool
  646.     {
  647.         return $this->noDispo;
  648.     }
  649.     public function setNoDispo(bool $noDispo): self
  650.     {
  651.         $this->noDispo $noDispo;
  652.         return $this;
  653.     }
  654.     public function getContratSigne(): ?bool
  655.     {
  656.         return $this->contratSigne;
  657.     }
  658.     public function setContratSigne(bool $contratSigne): self
  659.     {
  660.         $this->contratSigne $contratSigne;
  661.         return $this;
  662.     }
  663.     public function getAdminRights(): ?bool
  664.     {
  665.         return $this->adminRights;
  666.     }
  667.     public function setAdminRights(bool $adminRights): self
  668.     {
  669.         $this->adminRights $adminRights;
  670.         return $this;
  671.     }
  672.     public function getCommentairePlanning(): ?string
  673.     {
  674.         return $this->commentairePlanning;
  675.     }
  676.     public function setCommentairePlanning(?string $commentairePlanning): self
  677.     {
  678.         $this->commentairePlanning $commentairePlanning;
  679.         return $this;
  680.     }
  681.     public function getInfoComplementaire(): ?string
  682.     {
  683.         return $this->infoComplementaire;
  684.     }
  685.     public function setInfoComplementaire(?string $infoComplementaire): self
  686.     {
  687.         $this->infoComplementaire $infoComplementaire;
  688.         return $this;
  689.     }
  690.     public function getActive(): ?bool
  691.     {
  692.         return $this->active;
  693.     }
  694.     public function setActive(bool $active): self
  695.     {
  696.         $this->active $active;
  697.         return $this;
  698.     }
  699.     public function getVisible(): ?bool
  700.     {
  701.         return $this->visible;
  702.     }
  703.     public function setVisible(bool $visible): self
  704.     {
  705.         $this->visible $visible;
  706.         return $this;
  707.     }
  708.     public function getDateCreation(): ?\DateTimeInterface
  709.     {
  710.         return $this->dateCreation;
  711.     }
  712.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  713.     {
  714.         $this->dateCreation $dateCreation;
  715.         return $this;
  716.     }
  717.     public function getDateModification(): ?\DateTimeInterface
  718.     {
  719.         return $this->dateModification;
  720.     }
  721.     public function setDateModification(\DateTimeInterface $dateModification): self
  722.     {
  723.         $this->dateModification $dateModification;
  724.         return $this;
  725.     }
  726.     public function getLangue(): ?Langue
  727.     {
  728.         return $this->langue;
  729.     }
  730.     public function setLangue(?Langue $langue): self
  731.     {
  732.         $this->langue $langue;
  733.         return $this;
  734.     }
  735.     public function getVille(): ?Ville
  736.     {
  737.         return $this->ville;
  738.     }
  739.     public function setVille(?Ville $ville): self
  740.     {
  741.         $this->ville $ville;
  742.         return $this;
  743.     }
  744.     public function getMutuelle(): ?Mutuelle
  745.     {
  746.         return $this->mutuelle;
  747.     }
  748.     public function setMutuelle(?Mutuelle $mutuelle): self
  749.     {
  750.         $this->mutuelle $mutuelle;
  751.         return $this;
  752.     }
  753.     public function getNiveau(): ?UserNiveau
  754.     {
  755.         return $this->niveau;
  756.     }
  757.     public function setNiveau(?UserNiveau $niveau): self
  758.     {
  759.         $this->niveau $niveau;
  760.         return $this;
  761.     }
  762.     public function getFonction(): ?UserFonction
  763.     {
  764.         return $this->fonction;
  765.     }
  766.     public function setFonction(?UserFonction $fonction): self
  767.     {
  768.         $this->fonction $fonction;
  769.         return $this;
  770.     }
  771.     public function getTypeContrat(): ?TypeContrat
  772.     {
  773.         return $this->typeContrat;
  774.     }
  775.     public function setTypeContrat(?TypeContrat $typeContrat): self
  776.     {
  777.         $this->typeContrat $typeContrat;
  778.         return $this;
  779.     }
  780.     /**
  781.      * Helpers
  782.      */
  783.     public function setRoles(array $roles): self
  784.     {
  785.         $this->roles $roles;
  786.         return $this;
  787.     }
  788.     /**
  789.      * @inheritDoc
  790.      */
  791.     public function getRoles(): array
  792.     {
  793.         return $this->roles;
  794.     }
  795.     /**
  796.      * @inheritDoc
  797.      */
  798.     public function getSalt(): ?string
  799.     {
  800.         // TODO: Implement getSalt() method.
  801.         return null;
  802.     }
  803.     /**
  804.      * @inheritDoc
  805.      */
  806.     public function eraseCredentials()
  807.     {
  808.         // TODO: Implement eraseCredentials() method.
  809.     }
  810.     public function getUsername(): string
  811.     {
  812.         return $this->getLogin();
  813.     }
  814.     public function getUserIdentifier(): string
  815.     {
  816.         return $this->getPrenom() . ' ' $this->getNom();
  817.     }
  818.     public function getFullName(): string
  819.     {
  820.         return $this->getPrenom() . ' ' $this->getNom();
  821.     }
  822.     public function getNomPrenom(): string
  823.     {
  824.         return $this->getNom() . ' ' $this->getPrenom();
  825.     }
  826.     public function getEmailMD5(): ?string
  827.     {
  828.         return md5($this->getEmail());
  829.     }
  830. }