src/Entity/User.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\UserRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  10. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  11. use Symfony\Component\Security\Core\User\UserInterface;
  12. #[ORM\Entity(repositoryClassUserRepository::class)]
  13. #[UniqueEntity(fields: ['email'], message'There is already an account with this email')]
  14. #[ApiResource]
  15. class User implements UserInterfacePasswordAuthenticatedUserInterface
  16. {
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue]
  19.     #[ORM\Column]
  20.     private ?int $id null;
  21.     #[ORM\Column(length180uniquetrue)]
  22.     private ?string $email null;
  23.     #[ORM\Column]
  24.     private array $roles = [];
  25.     /**
  26.      * @var string The hashed password
  27.      */
  28.     #[ORM\Column]
  29.     private ?string $password null;
  30.     #[ORM\Column(length255 nullabletrue)]
  31.     private ?string $adresse null;
  32.     #[ORM\Column(length255 nullabletrue)]
  33.     private ?string $phone null;
  34.     #[ORM\Column(length255 nullabletrue) ]
  35.     private ?string $options null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $logo null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $nom null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $prenom null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $phone1 null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $fb null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $Linkedin null;
  48.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  49.     private ?string $biographie null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $cv null;
  52.     #[ORM\OneToMany(mappedBy'user'targetEntityDiplome::class,cascade: ['remove'])]
  53.     private Collection $diplome;
  54.     #[ORM\OneToMany(mappedBy'user'targetEntityCertificat::class,cascade: ['remove'])]
  55.     private Collection $certificat;
  56.     #[ORM\OneToMany(mappedBy'user'targetEntityExperience::class,cascade: ['remove'])]
  57.     private Collection $experiences;
  58.     #[ORM\Column(length255nullabletrue)]
  59.     private ?string $poste null;
  60.     #[ORM\OneToMany(mappedBy'formateur'targetEntityFormation::class,cascade: ['remove'])]
  61.     private Collection $formations;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $pays null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $type null;
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $responsable null;
  68.     #[ORM\OneToMany(mappedBy'stagiaire'targetEntityInscritSession::class,cascade: ['remove'])]
  69.     private Collection $inscritSessions;
  70. //    #[ORM\ManyToOne(inversedBy: 'user')]
  71. //   private ?Messageinscrit $messageinscrit = null;
  72.    #[ORM\OneToMany(mappedBy'user'targetEntityMessageinscrit::class,cascade: ['remove'])]
  73.    private Collection $messageinscrits;
  74.    #[ORM\Column(length255nullabletrue)]
  75.    private ?string $siteweb null;
  76.    #[ORM\Column(length255nullabletrue)]
  77.    private ?string $github null;
  78.    #[ORM\Column(length255nullabletrue)]
  79.    private ?string $twitter null;
  80. #[ORM\OneToMany(mappedBy'user'targetEntityReclamation::class,cascade: ['remove'])]
  81.  private Collection $reclamations;
  82. #[ORM\OneToMany(mappedBy'user'targetEntityEvaluation::class,cascade: ['remove'])]
  83. private Collection $evaluations;
  84. #[ORM\OneToMany(mappedBy'formateur'targetEntityEvenement::class,cascade: ['remove'])]
  85. private Collection $evenements;
  86. #[ORM\OneToMany(mappedBy'formateur'targetEntityVirtualClassroom::class,cascade: ['remove'])]
  87. private Collection $virtualClassrooms;
  88. #[ORM\OneToMany(mappedBy'destinataire'targetEntityReponsereclamation::class,cascade: ['remove'])]
  89. private Collection $reponsereclamations;
  90. #[ORM\Column(nullabletrue)]
  91. private ?bool $vue null;
  92. #[ORM\OneToMany(mappedBy'relationus'targetEntityOffresinscrit::class,cascade: ['remove'])]
  93. private Collection $offresinscrits;
  94. #[ORM\OneToMany(mappedBy'destinataire'targetEntityReponsemessage::class,cascade: ['remove'])]
  95. private Collection $reponsemessages;
  96. #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  97. private ?\DateTimeInterface $date null;
  98. #[ORM\Column(length255nullabletrue)]
  99. private ?string $vu null;
  100. #[ORM\OneToMany(mappedBy'user'targetEntityDemmandeformation::class,cascade: ['remove'])]
  101. private Collection $demmandeformations;
  102. #[ORM\OneToMany(mappedBy'user'targetEntityDemandeprofil::class,cascade: ['remove'])]
  103. private Collection $demandeprofils;
  104. #[ORM\OneToMany(mappedBy'expediteur'targetEntityReponseDemandeFormation::class,cascade: ['remove'])]
  105. private Collection $reponseDemandeFormations;
  106. #[ORM\OneToMany(mappedBy'destinataire'targetEntityReponseDemandeFormation::class,cascade: ['remove'])]
  107. private Collection $reponseDemandeFormationsdest;
  108. #[ORM\OneToMany(mappedBy'user'targetEntityEmailsadmin::class,cascade: ['remove'])]
  109. private Collection $emailsadmins;
  110. #[ORM\ManyToMany(targetEntityTacheAssistant::class, inversedBy'users')]
  111. private Collection $taches;
  112. #[ORM\OneToMany(mappedBy'user'targetEntityTrace::class,cascade: ['remove'])]
  113. private Collection $traces;
  114. #[ORM\Column(length255nullabletrue)]
  115. private ?string $ipadress null;
  116. #[ORM\OneToMany(mappedBy'student'targetEntityEmailStudent::class,cascade: ['remove'])]
  117. private Collection $emailStudents;
  118. #[ORM\OneToMany(mappedBy'user'targetEntitySignature::class)]
  119. private Collection $signatures;
  120. #[ORM\OneToMany(mappedBy'user'targetEntityIpadresse::class , cascade: ['remove'])]
  121. private Collection $ipadresses;
  122. #[ORM\Column(nullabletrue)]
  123. private ?bool $isActive null;
  124. #[ORM\OneToMany(mappedBy'formateur'targetEntityFormationElearning::class)]
  125. private Collection $formationElearnings;
  126. #[ORM\OneToMany(mappedBy'user'targetEntityCommande::class)]
  127. private Collection $commandes;
  128. #[ORM\OneToMany(mappedBy'user'targetEntityEvaluationElearning::class)]
  129. private Collection $evaluationElearnings;
  130. #[ORM\Column(length255nullabletrue)]
  131. private ?string $nomsociete null;
  132. #[ORM\Column(length255nullabletrue)]
  133. private ?string $adressesociete null;
  134. #[ORM\Column(length255nullabletrue)]
  135. private ?string $matricule null;
  136. #[ORM\OneToMany(mappedBy'user'targetEntityCommentElearning::class)]
  137. private Collection $commentElearnings;
  138. #[ORM\ManyToMany(targetEntityCommentElearning::class, mappedBy'likedBy')]
  139. private Collection $commentLikes;
  140. #[ORM\OneToMany(mappedBy'sender'targetEntityChatFormation::class)]
  141. private Collection $chatFormations;
  142. #[ORM\OneToMany(mappedBy'user'targetEntityCoupon::class)]
  143. private Collection $coupons;
  144. #[ORM\OneToMany(mappedBy'stagiaire'targetEntityQuizReponse::class)]
  145. private Collection $reponses;
  146. #[ORM\OneToMany(mappedBy'createdBy'targetEntityQuiz::class)]
  147. private Collection $quizzes;
  148. #[ORM\OneToMany(mappedBy'user'targetEntityPDFAccessLog::class)]
  149. private Collection $pDFAccessLogs;
  150. #[ORM\OneToMany(mappedBy'sender'targetEntityChatSession::class)]
  151. private Collection $chatSessions;
  152.     public function __construct()
  153.     {
  154.         $this->diplome = new ArrayCollection();
  155.         $this->certificat = new ArrayCollection();
  156.         $this->experiences = new ArrayCollection();
  157.         $this->formations = new ArrayCollection();
  158.         $this->inscritSessions = new ArrayCollection();
  159.         $this->messageinscrits = new ArrayCollection();
  160.         $this->reclamations = new ArrayCollection();
  161.         $this->evaluations = new ArrayCollection();
  162.         $this->evenements = new ArrayCollection();
  163.         $this->virtualClassrooms = new ArrayCollection();
  164.         $this->reponsereclamations = new ArrayCollection();
  165.         $this->offresinscrits = new ArrayCollection();
  166.         $this->reponsemessages = new ArrayCollection();
  167.         $this->demmandeformations = new ArrayCollection();
  168.         $this->demandeprofils = new ArrayCollection();
  169.         $this->reponseDemandeFormations = new ArrayCollection();
  170.         $this->reponseDemandeFormationsdest = new ArrayCollection();
  171.         $this->emailsadmins = new ArrayCollection();
  172.         $this->taches = new ArrayCollection();
  173.         $this->traces = new ArrayCollection();
  174.         $this->emailStudents = new ArrayCollection();
  175.         $this->signatures = new ArrayCollection();
  176.         $this->ipadresses = new ArrayCollection();
  177.         $this->formationElearnings = new ArrayCollection();
  178.         $this->commandes = new ArrayCollection();
  179.         $this->evaluationElearnings = new ArrayCollection();
  180.         $this->commentElearnings = new ArrayCollection();
  181.         $this->commentLikes = new ArrayCollection();
  182.         $this->chatFormations = new ArrayCollection();
  183.         $this->coupons = new ArrayCollection();
  184.         $this->reponses = new ArrayCollection();
  185.         $this->quizzes = new ArrayCollection();
  186.         $this->pDFAccessLogs = new ArrayCollection();
  187.         $this->chatSessions = new ArrayCollection();
  188.     }
  189.     public function __toString(): string
  190.     {
  191.         return $this->getNom();
  192.     }
  193.     public function getId(): ?int
  194.     {
  195.         return $this->id;
  196.     }
  197.     public function getEmail(): ?string
  198.     {
  199.         return $this->email;
  200.     }
  201.     public function setEmail(string $email): self
  202.     {
  203.         $this->email $email;
  204.         return $this;
  205.     }
  206.     /**
  207.      * A visual identifier that represents this user.
  208.      *
  209.      * @see UserInterface
  210.      */
  211.     public function getUserIdentifier(): string
  212.     {
  213.         return (string) $this->email;
  214.     }
  215.     /**
  216.      * @see UserInterface
  217.      */
  218.     public function getRoles(): array
  219.     {
  220.         $roles $this->roles;
  221.         // guarantee every user at least has ROLE_USER
  222.         $roles[] = 'ROLE_USER';
  223.         return array_unique($roles);
  224.     }
  225.     public function setRoles(array $roles): self
  226.     {
  227.         $this->roles $roles;
  228.         return $this;
  229.     }
  230.     /**
  231.      * @see PasswordAuthenticatedUserInterface
  232.      */
  233.     public function getPassword(): string
  234.     {
  235.         return $this->password;
  236.     }
  237.     public function setPassword(string $password): self
  238.     {
  239.         $this->password $password;
  240.         return $this;
  241.     }
  242.     /**
  243.      * @see UserInterface
  244.      */
  245.     public function eraseCredentials()
  246.     {
  247.         // If you store any temporary, sensitive data on the user, clear it here
  248.         // $this->plainPassword = null;
  249.     }
  250.     public function getAdresse(): ?string
  251.     {
  252.         return $this->adresse;
  253.     }
  254.     public function setAdresse(?string $adresse): self
  255.     {
  256.         $this->adresse $adresse;
  257.         return $this;
  258.     }
  259.     public function getPhone(): ?string
  260.     {
  261.         return $this->phone;
  262.     }
  263.     public function setPhone(string $phone): self
  264.     {
  265.         $this->phone $phone;
  266.         return $this;
  267.     }
  268.     public function getOptions(): ?string
  269.     {
  270.         return $this->options;
  271.     }
  272.     public function setOptions(string $options): self
  273.     {
  274.         $this->options $options;
  275.         return $this;
  276.     }
  277.     public function getLogo(): ?string
  278.     {
  279.         return $this->logo;
  280.     }
  281.     public function setLogo(?string $logo): self
  282.     {
  283.         $this->logo $logo;
  284.         return $this;
  285.     }
  286.     public function getNom(): ?string
  287.     {
  288.         return $this->nom;
  289.     }
  290.     public function setNom(?string $nom): self
  291.     {
  292.         $this->nom $nom;
  293.         return $this;
  294.     }
  295.     public function getPrenom(): ?string
  296.     {
  297.         return $this->prenom;
  298.     }
  299.     public function setPrenom(?string $prenom): self
  300.     {
  301.         $this->prenom $prenom;
  302.         return $this;
  303.     }
  304.     public function getPhone1(): ?string
  305.     {
  306.         return $this->phone1;
  307.     }
  308.     public function setPhone1(?string $phone1): self
  309.     {
  310.         $this->phone1 $phone1;
  311.         return $this;
  312.     }
  313.     public function getFb(): ?string
  314.     {
  315.         return $this->fb;
  316.     }
  317.     public function setFb(?string $fb): self
  318.     {
  319.         $this->fb $fb;
  320.         return $this;
  321.     }
  322.     public function getLinkedin(): ?string
  323.     {
  324.         return $this->Linkedin;
  325.     }
  326.     public function setLinkedin(?string $Linkedin): self
  327.     {
  328.         $this->Linkedin $Linkedin;
  329.         return $this;
  330.     }
  331.     public function getBiographie(): ?string
  332.     {
  333.         return $this->biographie;
  334.     }
  335.     public function setBiographie(?string $biographie): self
  336.     {
  337.         $this->biographie $biographie;
  338.         return $this;
  339.     }
  340.     public function getCv(): ?string
  341.     {
  342.         return $this->cv;
  343.     }
  344.     public function setCv(?string $cv): self
  345.     {
  346.         $this->cv $cv;
  347.         return $this;
  348.     }
  349.     /**
  350.      * @return Collection<int, Diplome>
  351.      */
  352.     public function getDiplome(): Collection
  353.     {
  354.         return $this->diplome;
  355.     }
  356.     public function addDiplome(Diplome $diplome): self
  357.     {
  358.         if (!$this->diplome->contains($diplome)) {
  359.             $this->diplome->add($diplome);
  360.             $diplome->setUser($this);
  361.         }
  362.         return $this;
  363.     }
  364.     public function removeDiplome(Diplome $diplome): self
  365.     {
  366.         if ($this->diplome->removeElement($diplome)) {
  367.             // set the owning side to null (unless already changed)
  368.             if ($diplome->getUser() === $this) {
  369.                 $diplome->setUser(null);
  370.             }
  371.         }
  372.         return $this;
  373.     }
  374.     /**
  375.      * @return Collection<int, Certificat>
  376.      */
  377.     public function getCertificat(): Collection
  378.     {
  379.         return $this->certificat;
  380.     }
  381.     public function addCertificat(Certificat $certificat): self
  382.     {
  383.         if (!$this->certificat->contains($certificat)) {
  384.             $this->certificat->add($certificat);
  385.             $certificat->setUser($this);
  386.         }
  387.         return $this;
  388.     }
  389.     public function removeCertificat(Certificat $certificat): self
  390.     {
  391.         if ($this->certificat->removeElement($certificat)) {
  392.             // set the owning side to null (unless already changed)
  393.             if ($certificat->getUser() === $this) {
  394.                 $certificat->setUser(null);
  395.             }
  396.         }
  397.         return $this;
  398.     }
  399.     /**
  400.      * @return Collection<int, Experience>
  401.      */
  402.     public function getExperiences(): Collection
  403.     {
  404.         return $this->experiences;
  405.     }
  406.     public function addExperience(Experience $experience): self
  407.     {
  408.         if (!$this->experiences->contains($experience)) {
  409.             $this->experiences->add($experience);
  410.             $experience->setUser($this);
  411.         }
  412.         return $this;
  413.     }
  414.     public function removeExperience(Experience $experience): self
  415.     {
  416.         if ($this->experiences->removeElement($experience)) {
  417.             // set the owning side to null (unless already changed)
  418.             if ($experience->getUser() === $this) {
  419.                 $experience->setUser(null);
  420.             }
  421.         }
  422.         return $this;
  423.     }
  424.     public function getPoste(): ?string
  425.     {
  426.         return $this->poste;
  427.     }
  428.     public function setPoste(?string $poste): self
  429.     {
  430.         $this->poste $poste;
  431.         return $this;
  432.     }
  433.     /**
  434.      * @return Collection<int, Formation>
  435.      */
  436.     public function getFormations(): Collection
  437.     {
  438.         return $this->formations;
  439.     }
  440.     public function addFormation(Formation $formation): self
  441.     {
  442.         if (!$this->formations->contains($formation)) {
  443.             $this->formations->add($formation);
  444.             $formation->setFormateur($this);
  445.         }
  446.         return $this;
  447.     }
  448.     public function removeFormation(Formation $formation): self
  449.     {
  450.         if ($this->formations->removeElement($formation)) {
  451.             // set the owning side to null (unless already changed)
  452.             if ($formation->getFormateur() === $this) {
  453.                 $formation->setFormateur(null);
  454.             }
  455.         }
  456.         return $this;
  457.     }
  458.     public function getPays(): ?string
  459.     {
  460.         return $this->pays;
  461.     }
  462.     public function setPays(?string $pays): self
  463.     {
  464.         $this->pays $pays;
  465.         return $this;
  466.     }
  467.     public function getType(): ?string
  468.     {
  469.         return $this->type;
  470.     }
  471.     public function setType(?string $type): self
  472.     {
  473.         $this->type $type;
  474.         return $this;
  475.     }
  476.     public function getResponsable(): ?string
  477.     {
  478.         return $this->responsable;
  479.     }
  480.     public function setResponsable(?string $responsable): self
  481.     {
  482.         $this->responsable $responsable;
  483.         return $this;
  484.     }
  485.     /**
  486.      * @return Collection<int, InscritSession>
  487.      */
  488.     public function getInscritSessions(): Collection
  489.     {
  490.         return $this->inscritSessions;
  491.     }
  492.     public function addInscritSession(InscritSession $inscritSession): self
  493.     {
  494.         if (!$this->inscritSessions->contains($inscritSession)) {
  495.             $this->inscritSessions->add($inscritSession);
  496.             $inscritSession->setStagiaire($this);
  497.         }
  498.         return $this;
  499.     }
  500.     public function removeInscritSession(InscritSession $inscritSession): self
  501.     {
  502.         if ($this->inscritSessions->removeElement($inscritSession)) {
  503.             // set the owning side to null (unless already changed)
  504.             if ($inscritSession->getStagiaire() === $this) {
  505.                 $inscritSession->setStagiaire(null);
  506.             }
  507.         }
  508.         return $this;
  509.     }
  510. //    public function getMessageinscrit(): ?Messageinscrit
  511. //    {
  512. //        return $this->messageinscrit;
  513. //    }
  514. //
  515. //    public function setMessageinscrit(?Messageinscrit $messageinscrit): self
  516. //    {
  517. //        $this->messageinscrit = $messageinscrit;
  518. //
  519. //        return $this;
  520. //    }
  521.     /**
  522.      * @return Collection<int, Messageinscrit>
  523.      */
  524.     public function getMessageinscrits(): Collection
  525.     {
  526.         return $this->messageinscrits;
  527.     }
  528.     public function addMessageinscrit(Messageinscrit $messageinscrit): self
  529.     {
  530.         if (!$this->messageinscrits->contains($messageinscrit)) {
  531.             $this->messageinscrits->add($messageinscrit);
  532.             $messageinscrit->setUser($this);
  533.         }
  534.         return $this;
  535.     }
  536.     public function removeMessageinscrit(Messageinscrit $messageinscrit): self
  537.     {
  538.         if ($this->messageinscrits->removeElement($messageinscrit)) {
  539.             // set the owning side to null (unless already changed)
  540.             if ($messageinscrit->getUser() === $this) {
  541.                 $messageinscrit->setUser(null);
  542.             }
  543.         }
  544.         return $this;
  545.     }
  546.     public function getSiteweb(): ?string
  547.     {
  548.         return $this->siteweb;
  549.     }
  550.     public function setSiteweb(?string $siteweb): self
  551.     {
  552.         $this->siteweb $siteweb;
  553.         return $this;
  554.     }
  555.     public function getGithub(): ?string
  556.     {
  557.         return $this->github;
  558.     }
  559.     public function setGithub(?string $github): self
  560.     {
  561.         $this->github $github;
  562.         return $this;
  563.     }
  564.     public function getTwitter(): ?string
  565.     {
  566.         return $this->twitter;
  567.     }
  568.     public function setTwitter(?string $twitter): self
  569.     {
  570.         $this->twitter $twitter;
  571.         return $this;
  572.     }
  573.     /**
  574.      * @return Collection<int, Reclamation>
  575.      */
  576.     public function getReclamations(): Collection
  577.     {
  578.         return $this->reclamations;
  579.     }
  580.     public function addReclamation(Reclamation $reclamation): self
  581.     {
  582.         if (!$this->reclamations->contains($reclamation)) {
  583.             $this->reclamations->add($reclamation);
  584.             $reclamation->setUser($this);
  585.         }
  586.         return $this;
  587.     }
  588.     public function removeReclamation(Reclamation $reclamation): self
  589.     {
  590.         if ($this->reclamations->removeElement($reclamation)) {
  591.             // set the owning side to null (unless already changed)
  592.             if ($reclamation->getUser() === $this) {
  593.                 $reclamation->setUser(null);
  594.             }
  595.         }
  596.         return $this;
  597.     }
  598.     /**
  599.      * @return Collection<int, Evaluation>
  600.      */
  601.     public function getEvaluations(): Collection
  602.     {
  603.         return $this->evaluations;
  604.     }
  605.     public function addEvaluation(Evaluation $evaluation): self
  606.     {
  607.         if (!$this->evaluations->contains($evaluation)) {
  608.             $this->evaluations->add($evaluation);
  609.             $evaluation->setUser($this);
  610.         }
  611.         return $this;
  612.     }
  613.     public function removeEvaluation(Evaluation $evaluation): self
  614.     {
  615.         if ($this->evaluations->removeElement($evaluation)) {
  616.             // set the owning side to null (unless already changed)
  617.             if ($evaluation->getUser() === $this) {
  618.                 $evaluation->setUser(null);
  619.             }
  620.         }
  621.         return $this;
  622.     }
  623.     /**
  624.      * @return Collection<int, Evenement>
  625.      */
  626.     public function getEvenements(): Collection
  627.     {
  628.         return $this->evenements;
  629.     }
  630.     public function addEvenement(Evenement $evenement): self
  631.     {
  632.         if (!$this->evenements->contains($evenement)) {
  633.             $this->evenements->add($evenement);
  634.             $evenement->setFormateur($this);
  635.         }
  636.         return $this;
  637.     }
  638.     public function removeEvenement(Evenement $evenement): self
  639.     {
  640.         if ($this->evenements->removeElement($evenement)) {
  641.             // set the owning side to null (unless already changed)
  642.             if ($evenement->getFormateur() === $this) {
  643.                 $evenement->setFormateur(null);
  644.             }
  645.         }
  646.         return $this;
  647.     }
  648.     /**
  649.      * @return Collection<int, VirtualClassroom>
  650.      */
  651.     public function getVirtualClassrooms(): Collection
  652.     {
  653.         return $this->virtualClassrooms;
  654.     }
  655.     public function addVirtualClassroom(VirtualClassroom $virtualClassroom): self
  656.     {
  657.         if (!$this->virtualClassrooms->contains($virtualClassroom)) {
  658.             $this->virtualClassrooms->add($virtualClassroom);
  659.             $virtualClassroom->setFormateur($this);
  660.         }
  661.         return $this;
  662.     }
  663.     public function removeVirtualClassroom(VirtualClassroom $virtualClassroom): self
  664.     {
  665.         if ($this->virtualClassrooms->removeElement($virtualClassroom)) {
  666.             // set the owning side to null (unless already changed)
  667.             if ($virtualClassroom->getFormateur() === $this) {
  668.                 $virtualClassroom->setFormateur(null);
  669.             }
  670.         }
  671.         return $this;
  672.     }
  673.     /**
  674.      * @return Collection<int, Reponsereclamation>
  675.      */
  676.     public function getReponsereclamations(): Collection
  677.     {
  678.         return $this->reponsereclamations;
  679.     }
  680.     public function addReponsereclamation(Reponsereclamation $reponsereclamation): self
  681.     {
  682.         if (!$this->reponsereclamations->contains($reponsereclamation)) {
  683.             $this->reponsereclamations->add($reponsereclamation);
  684.             $reponsereclamation->setDestinataire($this);
  685.         }
  686.         return $this;
  687.     }
  688.     public function removeReponsereclamation(Reponsereclamation $reponsereclamation): self
  689.     {
  690.         if ($this->reponsereclamations->removeElement($reponsereclamation)) {
  691.             // set the owning side to null (unless already changed)
  692.             if ($reponsereclamation->getDestinataire() === $this) {
  693.                 $reponsereclamation->setDestinataire(null);
  694.             }
  695.         }
  696.         return $this;
  697.     }
  698.     public function isVue(): ?bool
  699.     {
  700.         return $this->vue;
  701.     }
  702.     public function setVue(?bool $vue): self
  703.     {
  704.         $this->vue $vue;
  705.         return $this;
  706.     }
  707.     /**
  708.      * @return Collection<int, Offresinscrit>
  709.      */
  710.     public function getOffresinscrits(): Collection
  711.     {
  712.         return $this->offresinscrits;
  713.     }
  714.     public function addOffresinscrit(Offresinscrit $offresinscrit): self
  715.     {
  716.         if (!$this->offresinscrits->contains($offresinscrit)) {
  717.             $this->offresinscrits->add($offresinscrit);
  718.             $offresinscrit->setRelationus($this);
  719.         }
  720.         return $this;
  721.     }
  722.     public function removeOffresinscrit(Offresinscrit $offresinscrit): self
  723.     {
  724.         if ($this->offresinscrits->removeElement($offresinscrit)) {
  725.             // set the owning side to null (unless already changed)
  726.             if ($offresinscrit->getRelationus() === $this) {
  727.                 $offresinscrit->setRelationus(null);
  728.             }
  729.         }
  730.         return $this;
  731.     }
  732.     /**
  733.      * @return Collection<int, Reponsemessage>
  734.      */
  735.     public function getReponsemessages(): Collection
  736.     {
  737.         return $this->reponsemessages;
  738.     }
  739.     public function addReponsemessage(Reponsemessage $reponsemessage): self
  740.     {
  741.         if (!$this->reponsemessages->contains($reponsemessage)) {
  742.             $this->reponsemessages->add($reponsemessage);
  743.             $reponsemessage->setDestinataire($this);
  744.         }
  745.         return $this;
  746.     }
  747.     public function removeReponsemessage(Reponsemessage $reponsemessage): self
  748.     {
  749.         if ($this->reponsemessages->removeElement($reponsemessage)) {
  750.             // set the owning side to null (unless already changed)
  751.             if ($reponsemessage->getDestinataire() === $this) {
  752.                 $reponsemessage->setDestinataire(null);
  753.             }
  754.         }
  755.         return $this;
  756.     }
  757.     public function getDate(): ?\DateTimeInterface
  758.     {
  759.         return $this->date;
  760.     }
  761.     public function setDate(?\DateTimeInterface $date): self
  762.     {
  763.         $this->date $date;
  764.         return $this;
  765.     }
  766.     public function getVu(): ?string
  767.     {
  768.         return $this->vu;
  769.     }
  770.     public function setVu(?string $vu): self
  771.     {
  772.         $this->vu $vu;
  773.         return $this;
  774.     }
  775.     /**
  776.      * @return Collection<int, Demmandeformation>
  777.      */
  778.     public function getDemmandeformations(): Collection
  779.     {
  780.         return $this->demmandeformations;
  781.     }
  782.     public function addDemmandeformation(Demmandeformation $demmandeformation): self
  783.     {
  784.         if (!$this->demmandeformations->contains($demmandeformation)) {
  785.             $this->demmandeformations->add($demmandeformation);
  786.             $demmandeformation->setUser($this);
  787.         }
  788.         return $this;
  789.     }
  790.     public function removeDemmandeformation(Demmandeformation $demmandeformation): self
  791.     {
  792.         if ($this->demmandeformations->removeElement($demmandeformation)) {
  793.             // set the owning side to null (unless already changed)
  794.             if ($demmandeformation->getUser() === $this) {
  795.                 $demmandeformation->setUser(null);
  796.             }
  797.         }
  798.         return $this;
  799.     }
  800.     /**
  801.      * @return Collection<int, Demandeprofil>
  802.      */
  803.     public function getDemandeprofils(): Collection
  804.     {
  805.         return $this->demandeprofils;
  806.     }
  807.     public function addDemandeprofil(Demandeprofil $demandeprofil): self
  808.     {
  809.         if (!$this->demandeprofils->contains($demandeprofil)) {
  810.             $this->demandeprofils->add($demandeprofil);
  811.             $demandeprofil->setUser($this);
  812.         }
  813.         return $this;
  814.     }
  815.     public function removeDemandeprofil(Demandeprofil $demandeprofil): self
  816.     {
  817.         if ($this->demandeprofils->removeElement($demandeprofil)) {
  818.             // set the owning side to null (unless already changed)
  819.             if ($demandeprofil->getUser() === $this) {
  820.                 $demandeprofil->setUser(null);
  821.             }
  822.         }
  823.         return $this;
  824.     }
  825.     /**
  826.      * @return Collection<int, ReponseDemandeFormation>
  827.      */
  828.     public function getReponseDemandeFormations(): Collection
  829.     {
  830.         return $this->reponseDemandeFormations;
  831.     }
  832.     public function addReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  833.     {
  834.         if (!$this->reponseDemandeFormations->contains($reponseDemandeFormation)) {
  835.             $this->reponseDemandeFormations->add($reponseDemandeFormation);
  836.             $reponseDemandeFormation->setExpediteur($this);
  837.         }
  838.         return $this;
  839.     }
  840.     public function removeReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  841.     {
  842.         if ($this->reponseDemandeFormations->removeElement($reponseDemandeFormation)) {
  843.             // set the owning side to null (unless already changed)
  844.             if ($reponseDemandeFormation->getExpediteur() === $this) {
  845.                 $reponseDemandeFormation->setExpediteur(null);
  846.             }
  847.         }
  848.         return $this;
  849.     }
  850.     /**
  851.      * @return Collection<int, ReponseDemandeFormation>
  852.      */
  853.     public function getReponseDemandeFormationsdest(): Collection
  854.     {
  855.         return $this->reponseDemandeFormationsdest;
  856.     }
  857.     public function addReponseDemandeFormationsdest(ReponseDemandeFormation $reponseDemandeFormationsdest): self
  858.     {
  859.         if (!$this->reponseDemandeFormationsdest->contains($reponseDemandeFormationsdest)) {
  860.             $this->reponseDemandeFormationsdest->add($reponseDemandeFormationsdest);
  861.             $reponseDemandeFormationsdest->setDestinataire($this);
  862.         }
  863.         return $this;
  864.     }
  865.     public function removeReponseDemandeFormationsdest(ReponseDemandeFormation $reponseDemandeFormationsdest): self
  866.     {
  867.         if ($this->reponseDemandeFormationsdest->removeElement($reponseDemandeFormationsdest)) {
  868.             // set the owning side to null (unless already changed)
  869.             if ($reponseDemandeFormationsdest->getDestinataire() === $this) {
  870.                 $reponseDemandeFormationsdest->setDestinataire(null);
  871.             }
  872.         }
  873.         return $this;
  874.     }
  875.     /**
  876.      * @return Collection<int, Emailsadmin>
  877.      */
  878.     public function getEmailsadmins(): Collection
  879.     {
  880.         return $this->emailsadmins;
  881.     }
  882.     public function addEmailsadmin(Emailsadmin $emailsadmin): self
  883.     {
  884.         if (!$this->emailsadmins->contains($emailsadmin)) {
  885.             $this->emailsadmins->add($emailsadmin);
  886.             $emailsadmin->setUser($this);
  887.         }
  888.         return $this;
  889.     }
  890.     public function removeEmailsadmin(Emailsadmin $emailsadmin): self
  891.     {
  892.         if ($this->emailsadmins->removeElement($emailsadmin)) {
  893.             // set the owning side to null (unless already changed)
  894.             if ($emailsadmin->getUser() === $this) {
  895.                 $emailsadmin->setUser(null);
  896.             }
  897.         }
  898.         return $this;
  899.     }
  900.     /**
  901.      * @return Collection<int, TacheAssistant>
  902.      */
  903.     public function getTaches(): Collection
  904.     {
  905.         return $this->taches;
  906.     }
  907.     public function addTach(TacheAssistant $tach): self
  908.     {
  909.         if (!$this->taches->contains($tach)) {
  910.             $this->taches->add($tach);
  911.         }
  912.         return $this;
  913.     }
  914.     public function removeTach(TacheAssistant $tach): self
  915.     {
  916.         $this->taches->removeElement($tach);
  917.         return $this;
  918.     }
  919.     /**
  920.      * @return Collection<int, Trace>
  921.      */
  922.     public function getTraces(): Collection
  923.     {
  924.         return $this->traces;
  925.     }
  926.     public function addTrace(Trace $trace): self
  927.     {
  928.         if (!$this->traces->contains($trace)) {
  929.             $this->traces->add($trace);
  930.         }
  931.         return $this;
  932.     }
  933.     public function removeTrace(Trace $trace): self
  934.     {
  935.         $this->traces->removeElement($trace);
  936.         return $this;
  937.     }
  938.     public function getIpadress(): ?string
  939.     {
  940.         return $this->ipadress;
  941.     }
  942.     public function setIpadress(?string $ipadress): self
  943.     {
  944.         $this->ipadress $ipadress;
  945.         return $this;
  946.     }
  947.     /**
  948.      * @return Collection<int, EmailStudent>
  949.      */
  950.     public function getEmailStudents(): Collection
  951.     {
  952.         return $this->emailStudents;
  953.     }
  954.     public function addEmailStudent(EmailStudent $emailStudent): self
  955.     {
  956.         if (!$this->emailStudents->contains($emailStudent)) {
  957.             $this->emailStudents->add($emailStudent);
  958.             $emailStudent->setStudent($this);
  959.         }
  960.         return $this;
  961.     }
  962.     public function removeEmailStudent(EmailStudent $emailStudent): self
  963.     {
  964.         if ($this->emailStudents->removeElement($emailStudent)) {
  965.             // set the owning side to null (unless already changed)
  966.             if ($emailStudent->getStudent() === $this) {
  967.                 $emailStudent->setStudent(null);
  968.             }
  969.         }
  970.         return $this;
  971.     }
  972.     /**
  973.      * @return Collection<int, Signature>
  974.      */
  975.     public function getSignatures(): Collection
  976.     {
  977.         return $this->signatures;
  978.     }
  979.     public function addSignature(Signature $signature): self
  980.     {
  981.         if (!$this->signatures->contains($signature)) {
  982.             $this->signatures->add($signature);
  983.             $signature->setUser($this);
  984.         }
  985.         return $this;
  986.     }
  987.     public function removeSignature(Signature $signature): self
  988.     {
  989.         if ($this->signatures->removeElement($signature)) {
  990.             // set the owning side to null (unless already changed)
  991.             if ($signature->getUser() === $this) {
  992.                 $signature->setUser(null);
  993.             }
  994.         }
  995.         return $this;
  996.     }
  997.     /**
  998.      * @return Collection<int, Ipadresse>
  999.      */
  1000.     public function getIpadresses(): Collection
  1001.     {
  1002.         return $this->ipadresses;
  1003.     }
  1004.     public function addIpadress(Ipadresse $ipadress): self
  1005.     {
  1006.         if (!$this->ipadresses->contains($ipadress)) {
  1007.             $this->ipadresses->add($ipadress);
  1008.             $ipadress->setUser($this);
  1009.         }
  1010.         return $this;
  1011.     }
  1012.     public function removeIpadress(Ipadresse $ipadress): self
  1013.     {
  1014.         if ($this->ipadresses->removeElement($ipadress)) {
  1015.             // set the owning side to null (unless already changed)
  1016.             if ($ipadress->getUser() === $this) {
  1017.                 $ipadress->setUser(null);
  1018.             }
  1019.         }
  1020.         return $this;
  1021.     }
  1022.     public function isIsActive(): ?bool
  1023.     {
  1024.         return $this->isActive;
  1025.     }
  1026.     public function setIsActive(?bool $isActive): self
  1027.     {
  1028.         $this->isActive $isActive;
  1029.         return $this;
  1030.     }
  1031.     /**
  1032.      * @return Collection<int, FormationElearning>
  1033.      */
  1034.     public function getFormationElearnings(): Collection
  1035.     {
  1036.         return $this->formationElearnings;
  1037.     }
  1038.     public function addFormationElearning(FormationElearning $formationElearning): self
  1039.     {
  1040.         if (!$this->formationElearnings->contains($formationElearning)) {
  1041.             $this->formationElearnings->add($formationElearning);
  1042.             $formationElearning->setFormateur($this);
  1043.         }
  1044.         return $this;
  1045.     }
  1046.     public function removeFormationElearning(FormationElearning $formationElearning): self
  1047.     {
  1048.         if ($this->formationElearnings->removeElement($formationElearning)) {
  1049.             // set the owning side to null (unless already changed)
  1050.             if ($formationElearning->getFormateur() === $this) {
  1051.                 $formationElearning->setFormateur(null);
  1052.             }
  1053.         }
  1054.         return $this;
  1055.     }
  1056.     /**
  1057.      * @return Collection<int, Commande>
  1058.      */
  1059.     public function getCommandes(): Collection
  1060.     {
  1061.         return $this->commandes;
  1062.     }
  1063.     public function addCommande(Commande $commande): self
  1064.     {
  1065.         if (!$this->commandes->contains($commande)) {
  1066.             $this->commandes->add($commande);
  1067.             $commande->setUser($this);
  1068.         }
  1069.         return $this;
  1070.     }
  1071.     public function removeCommande(Commande $commande): self
  1072.     {
  1073.         if ($this->commandes->removeElement($commande)) {
  1074.             // set the owning side to null (unless already changed)
  1075.             if ($commande->getUser() === $this) {
  1076.                 $commande->setUser(null);
  1077.             }
  1078.         }
  1079.         return $this;
  1080.     }
  1081.     /**
  1082.      * @return Collection<int, EvaluationElearning>
  1083.      */
  1084.     public function getEvaluationElearnings(): Collection
  1085.     {
  1086.         return $this->evaluationElearnings;
  1087.     }
  1088.     public function addEvaluationElearning(EvaluationElearning $evaluationElearning): self
  1089.     {
  1090.         if (!$this->evaluationElearnings->contains($evaluationElearning)) {
  1091.             $this->evaluationElearnings->add($evaluationElearning);
  1092.             $evaluationElearning->setUser($this);
  1093.         }
  1094.         return $this;
  1095.     }
  1096.     public function removeEvaluationElearning(EvaluationElearning $evaluationElearning): self
  1097.     {
  1098.         if ($this->evaluationElearnings->removeElement($evaluationElearning)) {
  1099.             // set the owning side to null (unless already changed)
  1100.             if ($evaluationElearning->getUser() === $this) {
  1101.                 $evaluationElearning->setUser(null);
  1102.             }
  1103.         }
  1104.         return $this;
  1105.     }
  1106.     public function getNomsociete(): ?string
  1107.     {
  1108.         return $this->nomsociete;
  1109.     }
  1110.     public function setNomsociete(?string $nomsociete): self
  1111.     {
  1112.         $this->nomsociete $nomsociete;
  1113.         return $this;
  1114.     }
  1115.     public function getAdressesociete(): ?string
  1116.     {
  1117.         return $this->adressesociete;
  1118.     }
  1119.     public function setAdressesociete(?string $adressesociete): self
  1120.     {
  1121.         $this->adressesociete $adressesociete;
  1122.         return $this;
  1123.     }
  1124.     public function getMatricule(): ?string
  1125.     {
  1126.         return $this->matricule;
  1127.     }
  1128.     public function setMatricule(?string $matricule): self
  1129.     {
  1130.         $this->matricule $matricule;
  1131.         return $this;
  1132.     }
  1133.     /**
  1134.      * @return Collection<int, CommentElearning>
  1135.      */
  1136.     public function getCommentElearnings(): Collection
  1137.     {
  1138.         return $this->commentElearnings;
  1139.     }
  1140.     public function addCommentElearning(CommentElearning $commentElearning): self
  1141.     {
  1142.         if (!$this->commentElearnings->contains($commentElearning)) {
  1143.             $this->commentElearnings->add($commentElearning);
  1144.             $commentElearning->setUser($this);
  1145.         }
  1146.         return $this;
  1147.     }
  1148.     public function removeCommentElearning(CommentElearning $commentElearning): self
  1149.     {
  1150.         if ($this->commentElearnings->removeElement($commentElearning)) {
  1151.             // set the owning side to null (unless already changed)
  1152.             if ($commentElearning->getUser() === $this) {
  1153.                 $commentElearning->setUser(null);
  1154.             }
  1155.         }
  1156.         return $this;
  1157.     }
  1158.     /**
  1159.      * @return Collection<int, CommentElearning>
  1160.      */
  1161.     public function getCommentLikes(): Collection
  1162.     {
  1163.         return $this->commentLikes;
  1164.     }
  1165.     public function addCommentLike(CommentElearning $commentLike): self
  1166.     {
  1167.         if (!$this->commentLikes->contains($commentLike)) {
  1168.             $this->commentLikes->add($commentLike);
  1169.             $commentLike->addLikedBy($this);
  1170.         }
  1171.         return $this;
  1172.     }
  1173.     public function removeCommentLike(CommentElearning $commentLike): self
  1174.     {
  1175.         if ($this->commentLikes->removeElement($commentLike)) {
  1176.             $commentLike->removeLikedBy($this);
  1177.         }
  1178.         return $this;
  1179.     }
  1180.     /**
  1181.      * @return Collection<int, ChatFormation>
  1182.      */
  1183.     public function getChatFormations(): Collection
  1184.     {
  1185.         return $this->chatFormations;
  1186.     }
  1187.     public function addChatFormation(ChatFormation $chatFormation): self
  1188.     {
  1189.         if (!$this->chatFormations->contains($chatFormation)) {
  1190.             $this->chatFormations->add($chatFormation);
  1191.             $chatFormation->setSender($this);
  1192.         }
  1193.         return $this;
  1194.     }
  1195.     public function removeChatFormation(ChatFormation $chatFormation): self
  1196.     {
  1197.         if ($this->chatFormations->removeElement($chatFormation)) {
  1198.             // set the owning side to null (unless already changed)
  1199.             if ($chatFormation->getSender() === $this) {
  1200.                 $chatFormation->setSender(null);
  1201.             }
  1202.         }
  1203.         return $this;
  1204.     }
  1205.     /**
  1206.      * @return Collection<int, Coupon>
  1207.      */
  1208.     public function getCoupons(): Collection
  1209.     {
  1210.         return $this->coupons;
  1211.     }
  1212.     public function addCoupon(Coupon $coupon): self
  1213.     {
  1214.         if (!$this->coupons->contains($coupon)) {
  1215.             $this->coupons->add($coupon);
  1216.             $coupon->setUser($this);
  1217.         }
  1218.         return $this;
  1219.     }
  1220.     public function removeCoupon(Coupon $coupon): self
  1221.     {
  1222.         if ($this->coupons->removeElement($coupon)) {
  1223.             // set the owning side to null (unless already changed)
  1224.             if ($coupon->getUser() === $this) {
  1225.                 $coupon->setUser(null);
  1226.             }
  1227.         }
  1228.         return $this;
  1229.     }
  1230.     /**
  1231.      * @return Collection<int, QuizReponse>
  1232.      */
  1233.     public function getReponses(): Collection
  1234.     {
  1235.         return $this->reponses;
  1236.     }
  1237.     public function addReponse(QuizReponse $reponse): self
  1238.     {
  1239.         if (!$this->reponses->contains($reponse)) {
  1240.             $this->reponses->add($reponse);
  1241.             $reponse->setStagiaire($this);
  1242.         }
  1243.         return $this;
  1244.     }
  1245.     public function removeReponse(QuizReponse $reponse): self
  1246.     {
  1247.         if ($this->reponses->removeElement($reponse)) {
  1248.             // set the owning side to null (unless already changed)
  1249.             if ($reponse->getStagiaire() === $this) {
  1250.                 $reponse->setStagiaire(null);
  1251.             }
  1252.         }
  1253.         return $this;
  1254.     }
  1255.     /**
  1256.      * @return Collection<int, Quiz>
  1257.      */
  1258.     public function getQuizzes(): Collection
  1259.     {
  1260.         return $this->quizzes;
  1261.     }
  1262.     public function addQuiz(Quiz $quiz): self
  1263.     {
  1264.         if (!$this->quizzes->contains($quiz)) {
  1265.             $this->quizzes->add($quiz);
  1266.             $quiz->setCreatedBy($this);
  1267.         }
  1268.         return $this;
  1269.     }
  1270.     public function removeQuiz(Quiz $quiz): self
  1271.     {
  1272.         if ($this->quizzes->removeElement($quiz)) {
  1273.             // set the owning side to null (unless already changed)
  1274.             if ($quiz->getCreatedBy() === $this) {
  1275.                 $quiz->setCreatedBy(null);
  1276.             }
  1277.         }
  1278.         return $this;
  1279.     }
  1280.     /**
  1281.      * @return Collection<int, PDFAccessLog>
  1282.      */
  1283.     public function getPDFAccessLogs(): Collection
  1284.     {
  1285.         return $this->pDFAccessLogs;
  1286.     }
  1287.     public function addPDFAccessLog(PDFAccessLog $pDFAccessLog): self
  1288.     {
  1289.         if (!$this->pDFAccessLogs->contains($pDFAccessLog)) {
  1290.             $this->pDFAccessLogs->add($pDFAccessLog);
  1291.             $pDFAccessLog->setUser($this);
  1292.         }
  1293.         return $this;
  1294.     }
  1295.     public function removePDFAccessLog(PDFAccessLog $pDFAccessLog): self
  1296.     {
  1297.         if ($this->pDFAccessLogs->removeElement($pDFAccessLog)) {
  1298.             // set the owning side to null (unless already changed)
  1299.             if ($pDFAccessLog->getUser() === $this) {
  1300.                 $pDFAccessLog->setUser(null);
  1301.             }
  1302.         }
  1303.         return $this;
  1304.     }
  1305.     /**
  1306.      * @return Collection<int, ChatSession>
  1307.      */
  1308.     public function getChatSessions(): Collection
  1309.     {
  1310.         return $this->chatSessions;
  1311.     }
  1312.     public function addChatSession(ChatSession $chatSession): self
  1313.     {
  1314.         if (!$this->chatSessions->contains($chatSession)) {
  1315.             $this->chatSessions->add($chatSession);
  1316.             $chatSession->setSender($this);
  1317.         }
  1318.         return $this;
  1319.     }
  1320.     public function removeChatSession(ChatSession $chatSession): self
  1321.     {
  1322.         if ($this->chatSessions->removeElement($chatSession)) {
  1323.             // set the owning side to null (unless already changed)
  1324.             if ($chatSession->getSender() === $this) {
  1325.                 $chatSession->setSender(null);
  1326.             }
  1327.         }
  1328.         return $this;
  1329.     }
  1330. }