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.     public function __construct()
  145.     {
  146.         $this->diplome = new ArrayCollection();
  147.         $this->certificat = new ArrayCollection();
  148.         $this->experiences = new ArrayCollection();
  149.         $this->formations = new ArrayCollection();
  150.         $this->inscritSessions = new ArrayCollection();
  151.         $this->messageinscrits = new ArrayCollection();
  152.         $this->reclamations = new ArrayCollection();
  153.         $this->evaluations = new ArrayCollection();
  154.         $this->evenements = new ArrayCollection();
  155.         $this->virtualClassrooms = new ArrayCollection();
  156.         $this->reponsereclamations = new ArrayCollection();
  157.         $this->offresinscrits = new ArrayCollection();
  158.         $this->reponsemessages = new ArrayCollection();
  159.         $this->demmandeformations = new ArrayCollection();
  160.         $this->demandeprofils = new ArrayCollection();
  161.         $this->reponseDemandeFormations = new ArrayCollection();
  162.         $this->reponseDemandeFormationsdest = new ArrayCollection();
  163.         $this->emailsadmins = new ArrayCollection();
  164.         $this->taches = new ArrayCollection();
  165.         $this->traces = new ArrayCollection();
  166.         $this->emailStudents = new ArrayCollection();
  167.         $this->signatures = new ArrayCollection();
  168.         $this->ipadresses = new ArrayCollection();
  169.         $this->formationElearnings = new ArrayCollection();
  170.         $this->commandes = new ArrayCollection();
  171.         $this->evaluationElearnings = new ArrayCollection();
  172.         $this->commentElearnings = new ArrayCollection();
  173.         $this->commentLikes = new ArrayCollection();
  174.         $this->chatFormations = new ArrayCollection();
  175.         $this->coupons = new ArrayCollection();
  176.     }
  177.     public function __toString(): string
  178.     {
  179.         return $this->getNom();
  180.     }
  181.     public function getId(): ?int
  182.     {
  183.         return $this->id;
  184.     }
  185.     public function getEmail(): ?string
  186.     {
  187.         return $this->email;
  188.     }
  189.     public function setEmail(string $email): self
  190.     {
  191.         $this->email $email;
  192.         return $this;
  193.     }
  194.     /**
  195.      * A visual identifier that represents this user.
  196.      *
  197.      * @see UserInterface
  198.      */
  199.     public function getUserIdentifier(): string
  200.     {
  201.         return (string) $this->email;
  202.     }
  203.     /**
  204.      * @see UserInterface
  205.      */
  206.     public function getRoles(): array
  207.     {
  208.         $roles $this->roles;
  209.         // guarantee every user at least has ROLE_USER
  210.         $roles[] = 'ROLE_USER';
  211.         return array_unique($roles);
  212.     }
  213.     public function setRoles(array $roles): self
  214.     {
  215.         $this->roles $roles;
  216.         return $this;
  217.     }
  218.     /**
  219.      * @see PasswordAuthenticatedUserInterface
  220.      */
  221.     public function getPassword(): string
  222.     {
  223.         return $this->password;
  224.     }
  225.     public function setPassword(string $password): self
  226.     {
  227.         $this->password $password;
  228.         return $this;
  229.     }
  230.     /**
  231.      * @see UserInterface
  232.      */
  233.     public function eraseCredentials()
  234.     {
  235.         // If you store any temporary, sensitive data on the user, clear it here
  236.         // $this->plainPassword = null;
  237.     }
  238.     public function getAdresse(): ?string
  239.     {
  240.         return $this->adresse;
  241.     }
  242.     public function setAdresse(?string $adresse): self
  243.     {
  244.         $this->adresse $adresse;
  245.         return $this;
  246.     }
  247.     public function getPhone(): ?string
  248.     {
  249.         return $this->phone;
  250.     }
  251.     public function setPhone(string $phone): self
  252.     {
  253.         $this->phone $phone;
  254.         return $this;
  255.     }
  256.     public function getOptions(): ?string
  257.     {
  258.         return $this->options;
  259.     }
  260.     public function setOptions(string $options): self
  261.     {
  262.         $this->options $options;
  263.         return $this;
  264.     }
  265.     public function getLogo(): ?string
  266.     {
  267.         return $this->logo;
  268.     }
  269.     public function setLogo(?string $logo): self
  270.     {
  271.         $this->logo $logo;
  272.         return $this;
  273.     }
  274.     public function getNom(): ?string
  275.     {
  276.         return $this->nom;
  277.     }
  278.     public function setNom(?string $nom): self
  279.     {
  280.         $this->nom $nom;
  281.         return $this;
  282.     }
  283.     public function getPrenom(): ?string
  284.     {
  285.         return $this->prenom;
  286.     }
  287.     public function setPrenom(?string $prenom): self
  288.     {
  289.         $this->prenom $prenom;
  290.         return $this;
  291.     }
  292.     public function getPhone1(): ?string
  293.     {
  294.         return $this->phone1;
  295.     }
  296.     public function setPhone1(?string $phone1): self
  297.     {
  298.         $this->phone1 $phone1;
  299.         return $this;
  300.     }
  301.     public function getFb(): ?string
  302.     {
  303.         return $this->fb;
  304.     }
  305.     public function setFb(?string $fb): self
  306.     {
  307.         $this->fb $fb;
  308.         return $this;
  309.     }
  310.     public function getLinkedin(): ?string
  311.     {
  312.         return $this->Linkedin;
  313.     }
  314.     public function setLinkedin(?string $Linkedin): self
  315.     {
  316.         $this->Linkedin $Linkedin;
  317.         return $this;
  318.     }
  319.     public function getBiographie(): ?string
  320.     {
  321.         return $this->biographie;
  322.     }
  323.     public function setBiographie(?string $biographie): self
  324.     {
  325.         $this->biographie $biographie;
  326.         return $this;
  327.     }
  328.     public function getCv(): ?string
  329.     {
  330.         return $this->cv;
  331.     }
  332.     public function setCv(?string $cv): self
  333.     {
  334.         $this->cv $cv;
  335.         return $this;
  336.     }
  337.     /**
  338.      * @return Collection<int, Diplome>
  339.      */
  340.     public function getDiplome(): Collection
  341.     {
  342.         return $this->diplome;
  343.     }
  344.     public function addDiplome(Diplome $diplome): self
  345.     {
  346.         if (!$this->diplome->contains($diplome)) {
  347.             $this->diplome->add($diplome);
  348.             $diplome->setUser($this);
  349.         }
  350.         return $this;
  351.     }
  352.     public function removeDiplome(Diplome $diplome): self
  353.     {
  354.         if ($this->diplome->removeElement($diplome)) {
  355.             // set the owning side to null (unless already changed)
  356.             if ($diplome->getUser() === $this) {
  357.                 $diplome->setUser(null);
  358.             }
  359.         }
  360.         return $this;
  361.     }
  362.     /**
  363.      * @return Collection<int, Certificat>
  364.      */
  365.     public function getCertificat(): Collection
  366.     {
  367.         return $this->certificat;
  368.     }
  369.     public function addCertificat(Certificat $certificat): self
  370.     {
  371.         if (!$this->certificat->contains($certificat)) {
  372.             $this->certificat->add($certificat);
  373.             $certificat->setUser($this);
  374.         }
  375.         return $this;
  376.     }
  377.     public function removeCertificat(Certificat $certificat): self
  378.     {
  379.         if ($this->certificat->removeElement($certificat)) {
  380.             // set the owning side to null (unless already changed)
  381.             if ($certificat->getUser() === $this) {
  382.                 $certificat->setUser(null);
  383.             }
  384.         }
  385.         return $this;
  386.     }
  387.     /**
  388.      * @return Collection<int, Experience>
  389.      */
  390.     public function getExperiences(): Collection
  391.     {
  392.         return $this->experiences;
  393.     }
  394.     public function addExperience(Experience $experience): self
  395.     {
  396.         if (!$this->experiences->contains($experience)) {
  397.             $this->experiences->add($experience);
  398.             $experience->setUser($this);
  399.         }
  400.         return $this;
  401.     }
  402.     public function removeExperience(Experience $experience): self
  403.     {
  404.         if ($this->experiences->removeElement($experience)) {
  405.             // set the owning side to null (unless already changed)
  406.             if ($experience->getUser() === $this) {
  407.                 $experience->setUser(null);
  408.             }
  409.         }
  410.         return $this;
  411.     }
  412.     public function getPoste(): ?string
  413.     {
  414.         return $this->poste;
  415.     }
  416.     public function setPoste(?string $poste): self
  417.     {
  418.         $this->poste $poste;
  419.         return $this;
  420.     }
  421.     /**
  422.      * @return Collection<int, Formation>
  423.      */
  424.     public function getFormations(): Collection
  425.     {
  426.         return $this->formations;
  427.     }
  428.     public function addFormation(Formation $formation): self
  429.     {
  430.         if (!$this->formations->contains($formation)) {
  431.             $this->formations->add($formation);
  432.             $formation->setFormateur($this);
  433.         }
  434.         return $this;
  435.     }
  436.     public function removeFormation(Formation $formation): self
  437.     {
  438.         if ($this->formations->removeElement($formation)) {
  439.             // set the owning side to null (unless already changed)
  440.             if ($formation->getFormateur() === $this) {
  441.                 $formation->setFormateur(null);
  442.             }
  443.         }
  444.         return $this;
  445.     }
  446.     public function getPays(): ?string
  447.     {
  448.         return $this->pays;
  449.     }
  450.     public function setPays(?string $pays): self
  451.     {
  452.         $this->pays $pays;
  453.         return $this;
  454.     }
  455.     public function getType(): ?string
  456.     {
  457.         return $this->type;
  458.     }
  459.     public function setType(?string $type): self
  460.     {
  461.         $this->type $type;
  462.         return $this;
  463.     }
  464.     public function getResponsable(): ?string
  465.     {
  466.         return $this->responsable;
  467.     }
  468.     public function setResponsable(?string $responsable): self
  469.     {
  470.         $this->responsable $responsable;
  471.         return $this;
  472.     }
  473.     /**
  474.      * @return Collection<int, InscritSession>
  475.      */
  476.     public function getInscritSessions(): Collection
  477.     {
  478.         return $this->inscritSessions;
  479.     }
  480.     public function addInscritSession(InscritSession $inscritSession): self
  481.     {
  482.         if (!$this->inscritSessions->contains($inscritSession)) {
  483.             $this->inscritSessions->add($inscritSession);
  484.             $inscritSession->setStagiaire($this);
  485.         }
  486.         return $this;
  487.     }
  488.     public function removeInscritSession(InscritSession $inscritSession): self
  489.     {
  490.         if ($this->inscritSessions->removeElement($inscritSession)) {
  491.             // set the owning side to null (unless already changed)
  492.             if ($inscritSession->getStagiaire() === $this) {
  493.                 $inscritSession->setStagiaire(null);
  494.             }
  495.         }
  496.         return $this;
  497.     }
  498. //    public function getMessageinscrit(): ?Messageinscrit
  499. //    {
  500. //        return $this->messageinscrit;
  501. //    }
  502. //
  503. //    public function setMessageinscrit(?Messageinscrit $messageinscrit): self
  504. //    {
  505. //        $this->messageinscrit = $messageinscrit;
  506. //
  507. //        return $this;
  508. //    }
  509.     /**
  510.      * @return Collection<int, Messageinscrit>
  511.      */
  512.     public function getMessageinscrits(): Collection
  513.     {
  514.         return $this->messageinscrits;
  515.     }
  516.     public function addMessageinscrit(Messageinscrit $messageinscrit): self
  517.     {
  518.         if (!$this->messageinscrits->contains($messageinscrit)) {
  519.             $this->messageinscrits->add($messageinscrit);
  520.             $messageinscrit->setUser($this);
  521.         }
  522.         return $this;
  523.     }
  524.     public function removeMessageinscrit(Messageinscrit $messageinscrit): self
  525.     {
  526.         if ($this->messageinscrits->removeElement($messageinscrit)) {
  527.             // set the owning side to null (unless already changed)
  528.             if ($messageinscrit->getUser() === $this) {
  529.                 $messageinscrit->setUser(null);
  530.             }
  531.         }
  532.         return $this;
  533.     }
  534.     public function getSiteweb(): ?string
  535.     {
  536.         return $this->siteweb;
  537.     }
  538.     public function setSiteweb(?string $siteweb): self
  539.     {
  540.         $this->siteweb $siteweb;
  541.         return $this;
  542.     }
  543.     public function getGithub(): ?string
  544.     {
  545.         return $this->github;
  546.     }
  547.     public function setGithub(?string $github): self
  548.     {
  549.         $this->github $github;
  550.         return $this;
  551.     }
  552.     public function getTwitter(): ?string
  553.     {
  554.         return $this->twitter;
  555.     }
  556.     public function setTwitter(?string $twitter): self
  557.     {
  558.         $this->twitter $twitter;
  559.         return $this;
  560.     }
  561.     /**
  562.      * @return Collection<int, Reclamation>
  563.      */
  564.     public function getReclamations(): Collection
  565.     {
  566.         return $this->reclamations;
  567.     }
  568.     public function addReclamation(Reclamation $reclamation): self
  569.     {
  570.         if (!$this->reclamations->contains($reclamation)) {
  571.             $this->reclamations->add($reclamation);
  572.             $reclamation->setUser($this);
  573.         }
  574.         return $this;
  575.     }
  576.     public function removeReclamation(Reclamation $reclamation): self
  577.     {
  578.         if ($this->reclamations->removeElement($reclamation)) {
  579.             // set the owning side to null (unless already changed)
  580.             if ($reclamation->getUser() === $this) {
  581.                 $reclamation->setUser(null);
  582.             }
  583.         }
  584.         return $this;
  585.     }
  586.     /**
  587.      * @return Collection<int, Evaluation>
  588.      */
  589.     public function getEvaluations(): Collection
  590.     {
  591.         return $this->evaluations;
  592.     }
  593.     public function addEvaluation(Evaluation $evaluation): self
  594.     {
  595.         if (!$this->evaluations->contains($evaluation)) {
  596.             $this->evaluations->add($evaluation);
  597.             $evaluation->setUser($this);
  598.         }
  599.         return $this;
  600.     }
  601.     public function removeEvaluation(Evaluation $evaluation): self
  602.     {
  603.         if ($this->evaluations->removeElement($evaluation)) {
  604.             // set the owning side to null (unless already changed)
  605.             if ($evaluation->getUser() === $this) {
  606.                 $evaluation->setUser(null);
  607.             }
  608.         }
  609.         return $this;
  610.     }
  611.     /**
  612.      * @return Collection<int, Evenement>
  613.      */
  614.     public function getEvenements(): Collection
  615.     {
  616.         return $this->evenements;
  617.     }
  618.     public function addEvenement(Evenement $evenement): self
  619.     {
  620.         if (!$this->evenements->contains($evenement)) {
  621.             $this->evenements->add($evenement);
  622.             $evenement->setFormateur($this);
  623.         }
  624.         return $this;
  625.     }
  626.     public function removeEvenement(Evenement $evenement): self
  627.     {
  628.         if ($this->evenements->removeElement($evenement)) {
  629.             // set the owning side to null (unless already changed)
  630.             if ($evenement->getFormateur() === $this) {
  631.                 $evenement->setFormateur(null);
  632.             }
  633.         }
  634.         return $this;
  635.     }
  636.     /**
  637.      * @return Collection<int, VirtualClassroom>
  638.      */
  639.     public function getVirtualClassrooms(): Collection
  640.     {
  641.         return $this->virtualClassrooms;
  642.     }
  643.     public function addVirtualClassroom(VirtualClassroom $virtualClassroom): self
  644.     {
  645.         if (!$this->virtualClassrooms->contains($virtualClassroom)) {
  646.             $this->virtualClassrooms->add($virtualClassroom);
  647.             $virtualClassroom->setFormateur($this);
  648.         }
  649.         return $this;
  650.     }
  651.     public function removeVirtualClassroom(VirtualClassroom $virtualClassroom): self
  652.     {
  653.         if ($this->virtualClassrooms->removeElement($virtualClassroom)) {
  654.             // set the owning side to null (unless already changed)
  655.             if ($virtualClassroom->getFormateur() === $this) {
  656.                 $virtualClassroom->setFormateur(null);
  657.             }
  658.         }
  659.         return $this;
  660.     }
  661.     /**
  662.      * @return Collection<int, Reponsereclamation>
  663.      */
  664.     public function getReponsereclamations(): Collection
  665.     {
  666.         return $this->reponsereclamations;
  667.     }
  668.     public function addReponsereclamation(Reponsereclamation $reponsereclamation): self
  669.     {
  670.         if (!$this->reponsereclamations->contains($reponsereclamation)) {
  671.             $this->reponsereclamations->add($reponsereclamation);
  672.             $reponsereclamation->setDestinataire($this);
  673.         }
  674.         return $this;
  675.     }
  676.     public function removeReponsereclamation(Reponsereclamation $reponsereclamation): self
  677.     {
  678.         if ($this->reponsereclamations->removeElement($reponsereclamation)) {
  679.             // set the owning side to null (unless already changed)
  680.             if ($reponsereclamation->getDestinataire() === $this) {
  681.                 $reponsereclamation->setDestinataire(null);
  682.             }
  683.         }
  684.         return $this;
  685.     }
  686.     public function isVue(): ?bool
  687.     {
  688.         return $this->vue;
  689.     }
  690.     public function setVue(?bool $vue): self
  691.     {
  692.         $this->vue $vue;
  693.         return $this;
  694.     }
  695.     /**
  696.      * @return Collection<int, Offresinscrit>
  697.      */
  698.     public function getOffresinscrits(): Collection
  699.     {
  700.         return $this->offresinscrits;
  701.     }
  702.     public function addOffresinscrit(Offresinscrit $offresinscrit): self
  703.     {
  704.         if (!$this->offresinscrits->contains($offresinscrit)) {
  705.             $this->offresinscrits->add($offresinscrit);
  706.             $offresinscrit->setRelationus($this);
  707.         }
  708.         return $this;
  709.     }
  710.     public function removeOffresinscrit(Offresinscrit $offresinscrit): self
  711.     {
  712.         if ($this->offresinscrits->removeElement($offresinscrit)) {
  713.             // set the owning side to null (unless already changed)
  714.             if ($offresinscrit->getRelationus() === $this) {
  715.                 $offresinscrit->setRelationus(null);
  716.             }
  717.         }
  718.         return $this;
  719.     }
  720.     /**
  721.      * @return Collection<int, Reponsemessage>
  722.      */
  723.     public function getReponsemessages(): Collection
  724.     {
  725.         return $this->reponsemessages;
  726.     }
  727.     public function addReponsemessage(Reponsemessage $reponsemessage): self
  728.     {
  729.         if (!$this->reponsemessages->contains($reponsemessage)) {
  730.             $this->reponsemessages->add($reponsemessage);
  731.             $reponsemessage->setDestinataire($this);
  732.         }
  733.         return $this;
  734.     }
  735.     public function removeReponsemessage(Reponsemessage $reponsemessage): self
  736.     {
  737.         if ($this->reponsemessages->removeElement($reponsemessage)) {
  738.             // set the owning side to null (unless already changed)
  739.             if ($reponsemessage->getDestinataire() === $this) {
  740.                 $reponsemessage->setDestinataire(null);
  741.             }
  742.         }
  743.         return $this;
  744.     }
  745.     public function getDate(): ?\DateTimeInterface
  746.     {
  747.         return $this->date;
  748.     }
  749.     public function setDate(?\DateTimeInterface $date): self
  750.     {
  751.         $this->date $date;
  752.         return $this;
  753.     }
  754.     public function getVu(): ?string
  755.     {
  756.         return $this->vu;
  757.     }
  758.     public function setVu(?string $vu): self
  759.     {
  760.         $this->vu $vu;
  761.         return $this;
  762.     }
  763.     /**
  764.      * @return Collection<int, Demmandeformation>
  765.      */
  766.     public function getDemmandeformations(): Collection
  767.     {
  768.         return $this->demmandeformations;
  769.     }
  770.     public function addDemmandeformation(Demmandeformation $demmandeformation): self
  771.     {
  772.         if (!$this->demmandeformations->contains($demmandeformation)) {
  773.             $this->demmandeformations->add($demmandeformation);
  774.             $demmandeformation->setUser($this);
  775.         }
  776.         return $this;
  777.     }
  778.     public function removeDemmandeformation(Demmandeformation $demmandeformation): self
  779.     {
  780.         if ($this->demmandeformations->removeElement($demmandeformation)) {
  781.             // set the owning side to null (unless already changed)
  782.             if ($demmandeformation->getUser() === $this) {
  783.                 $demmandeformation->setUser(null);
  784.             }
  785.         }
  786.         return $this;
  787.     }
  788.     /**
  789.      * @return Collection<int, Demandeprofil>
  790.      */
  791.     public function getDemandeprofils(): Collection
  792.     {
  793.         return $this->demandeprofils;
  794.     }
  795.     public function addDemandeprofil(Demandeprofil $demandeprofil): self
  796.     {
  797.         if (!$this->demandeprofils->contains($demandeprofil)) {
  798.             $this->demandeprofils->add($demandeprofil);
  799.             $demandeprofil->setUser($this);
  800.         }
  801.         return $this;
  802.     }
  803.     public function removeDemandeprofil(Demandeprofil $demandeprofil): self
  804.     {
  805.         if ($this->demandeprofils->removeElement($demandeprofil)) {
  806.             // set the owning side to null (unless already changed)
  807.             if ($demandeprofil->getUser() === $this) {
  808.                 $demandeprofil->setUser(null);
  809.             }
  810.         }
  811.         return $this;
  812.     }
  813.     /**
  814.      * @return Collection<int, ReponseDemandeFormation>
  815.      */
  816.     public function getReponseDemandeFormations(): Collection
  817.     {
  818.         return $this->reponseDemandeFormations;
  819.     }
  820.     public function addReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  821.     {
  822.         if (!$this->reponseDemandeFormations->contains($reponseDemandeFormation)) {
  823.             $this->reponseDemandeFormations->add($reponseDemandeFormation);
  824.             $reponseDemandeFormation->setExpediteur($this);
  825.         }
  826.         return $this;
  827.     }
  828.     public function removeReponseDemandeFormation(ReponseDemandeFormation $reponseDemandeFormation): self
  829.     {
  830.         if ($this->reponseDemandeFormations->removeElement($reponseDemandeFormation)) {
  831.             // set the owning side to null (unless already changed)
  832.             if ($reponseDemandeFormation->getExpediteur() === $this) {
  833.                 $reponseDemandeFormation->setExpediteur(null);
  834.             }
  835.         }
  836.         return $this;
  837.     }
  838.     /**
  839.      * @return Collection<int, ReponseDemandeFormation>
  840.      */
  841.     public function getReponseDemandeFormationsdest(): Collection
  842.     {
  843.         return $this->reponseDemandeFormationsdest;
  844.     }
  845.     public function addReponseDemandeFormationsdest(ReponseDemandeFormation $reponseDemandeFormationsdest): self
  846.     {
  847.         if (!$this->reponseDemandeFormationsdest->contains($reponseDemandeFormationsdest)) {
  848.             $this->reponseDemandeFormationsdest->add($reponseDemandeFormationsdest);
  849.             $reponseDemandeFormationsdest->setDestinataire($this);
  850.         }
  851.         return $this;
  852.     }
  853.     public function removeReponseDemandeFormationsdest(ReponseDemandeFormation $reponseDemandeFormationsdest): self
  854.     {
  855.         if ($this->reponseDemandeFormationsdest->removeElement($reponseDemandeFormationsdest)) {
  856.             // set the owning side to null (unless already changed)
  857.             if ($reponseDemandeFormationsdest->getDestinataire() === $this) {
  858.                 $reponseDemandeFormationsdest->setDestinataire(null);
  859.             }
  860.         }
  861.         return $this;
  862.     }
  863.     /**
  864.      * @return Collection<int, Emailsadmin>
  865.      */
  866.     public function getEmailsadmins(): Collection
  867.     {
  868.         return $this->emailsadmins;
  869.     }
  870.     public function addEmailsadmin(Emailsadmin $emailsadmin): self
  871.     {
  872.         if (!$this->emailsadmins->contains($emailsadmin)) {
  873.             $this->emailsadmins->add($emailsadmin);
  874.             $emailsadmin->setUser($this);
  875.         }
  876.         return $this;
  877.     }
  878.     public function removeEmailsadmin(Emailsadmin $emailsadmin): self
  879.     {
  880.         if ($this->emailsadmins->removeElement($emailsadmin)) {
  881.             // set the owning side to null (unless already changed)
  882.             if ($emailsadmin->getUser() === $this) {
  883.                 $emailsadmin->setUser(null);
  884.             }
  885.         }
  886.         return $this;
  887.     }
  888.     /**
  889.      * @return Collection<int, TacheAssistant>
  890.      */
  891.     public function getTaches(): Collection
  892.     {
  893.         return $this->taches;
  894.     }
  895.     public function addTach(TacheAssistant $tach): self
  896.     {
  897.         if (!$this->taches->contains($tach)) {
  898.             $this->taches->add($tach);
  899.         }
  900.         return $this;
  901.     }
  902.     public function removeTach(TacheAssistant $tach): self
  903.     {
  904.         $this->taches->removeElement($tach);
  905.         return $this;
  906.     }
  907.     /**
  908.      * @return Collection<int, Trace>
  909.      */
  910.     public function getTraces(): Collection
  911.     {
  912.         return $this->traces;
  913.     }
  914.     public function addTrace(Trace $trace): self
  915.     {
  916.         if (!$this->traces->contains($trace)) {
  917.             $this->traces->add($trace);
  918.         }
  919.         return $this;
  920.     }
  921.     public function removeTrace(Trace $trace): self
  922.     {
  923.         $this->traces->removeElement($trace);
  924.         return $this;
  925.     }
  926.     public function getIpadress(): ?string
  927.     {
  928.         return $this->ipadress;
  929.     }
  930.     public function setIpadress(?string $ipadress): self
  931.     {
  932.         $this->ipadress $ipadress;
  933.         return $this;
  934.     }
  935.     /**
  936.      * @return Collection<int, EmailStudent>
  937.      */
  938.     public function getEmailStudents(): Collection
  939.     {
  940.         return $this->emailStudents;
  941.     }
  942.     public function addEmailStudent(EmailStudent $emailStudent): self
  943.     {
  944.         if (!$this->emailStudents->contains($emailStudent)) {
  945.             $this->emailStudents->add($emailStudent);
  946.             $emailStudent->setStudent($this);
  947.         }
  948.         return $this;
  949.     }
  950.     public function removeEmailStudent(EmailStudent $emailStudent): self
  951.     {
  952.         if ($this->emailStudents->removeElement($emailStudent)) {
  953.             // set the owning side to null (unless already changed)
  954.             if ($emailStudent->getStudent() === $this) {
  955.                 $emailStudent->setStudent(null);
  956.             }
  957.         }
  958.         return $this;
  959.     }
  960.     /**
  961.      * @return Collection<int, Signature>
  962.      */
  963.     public function getSignatures(): Collection
  964.     {
  965.         return $this->signatures;
  966.     }
  967.     public function addSignature(Signature $signature): self
  968.     {
  969.         if (!$this->signatures->contains($signature)) {
  970.             $this->signatures->add($signature);
  971.             $signature->setUser($this);
  972.         }
  973.         return $this;
  974.     }
  975.     public function removeSignature(Signature $signature): self
  976.     {
  977.         if ($this->signatures->removeElement($signature)) {
  978.             // set the owning side to null (unless already changed)
  979.             if ($signature->getUser() === $this) {
  980.                 $signature->setUser(null);
  981.             }
  982.         }
  983.         return $this;
  984.     }
  985.     /**
  986.      * @return Collection<int, Ipadresse>
  987.      */
  988.     public function getIpadresses(): Collection
  989.     {
  990.         return $this->ipadresses;
  991.     }
  992.     public function addIpadress(Ipadresse $ipadress): self
  993.     {
  994.         if (!$this->ipadresses->contains($ipadress)) {
  995.             $this->ipadresses->add($ipadress);
  996.             $ipadress->setUser($this);
  997.         }
  998.         return $this;
  999.     }
  1000.     public function removeIpadress(Ipadresse $ipadress): self
  1001.     {
  1002.         if ($this->ipadresses->removeElement($ipadress)) {
  1003.             // set the owning side to null (unless already changed)
  1004.             if ($ipadress->getUser() === $this) {
  1005.                 $ipadress->setUser(null);
  1006.             }
  1007.         }
  1008.         return $this;
  1009.     }
  1010.     public function isIsActive(): ?bool
  1011.     {
  1012.         return $this->isActive;
  1013.     }
  1014.     public function setIsActive(?bool $isActive): self
  1015.     {
  1016.         $this->isActive $isActive;
  1017.         return $this;
  1018.     }
  1019.     /**
  1020.      * @return Collection<int, FormationElearning>
  1021.      */
  1022.     public function getFormationElearnings(): Collection
  1023.     {
  1024.         return $this->formationElearnings;
  1025.     }
  1026.     public function addFormationElearning(FormationElearning $formationElearning): self
  1027.     {
  1028.         if (!$this->formationElearnings->contains($formationElearning)) {
  1029.             $this->formationElearnings->add($formationElearning);
  1030.             $formationElearning->setFormateur($this);
  1031.         }
  1032.         return $this;
  1033.     }
  1034.     public function removeFormationElearning(FormationElearning $formationElearning): self
  1035.     {
  1036.         if ($this->formationElearnings->removeElement($formationElearning)) {
  1037.             // set the owning side to null (unless already changed)
  1038.             if ($formationElearning->getFormateur() === $this) {
  1039.                 $formationElearning->setFormateur(null);
  1040.             }
  1041.         }
  1042.         return $this;
  1043.     }
  1044.     /**
  1045.      * @return Collection<int, Commande>
  1046.      */
  1047.     public function getCommandes(): Collection
  1048.     {
  1049.         return $this->commandes;
  1050.     }
  1051.     public function addCommande(Commande $commande): self
  1052.     {
  1053.         if (!$this->commandes->contains($commande)) {
  1054.             $this->commandes->add($commande);
  1055.             $commande->setUser($this);
  1056.         }
  1057.         return $this;
  1058.     }
  1059.     public function removeCommande(Commande $commande): self
  1060.     {
  1061.         if ($this->commandes->removeElement($commande)) {
  1062.             // set the owning side to null (unless already changed)
  1063.             if ($commande->getUser() === $this) {
  1064.                 $commande->setUser(null);
  1065.             }
  1066.         }
  1067.         return $this;
  1068.     }
  1069.     /**
  1070.      * @return Collection<int, EvaluationElearning>
  1071.      */
  1072.     public function getEvaluationElearnings(): Collection
  1073.     {
  1074.         return $this->evaluationElearnings;
  1075.     }
  1076.     public function addEvaluationElearning(EvaluationElearning $evaluationElearning): self
  1077.     {
  1078.         if (!$this->evaluationElearnings->contains($evaluationElearning)) {
  1079.             $this->evaluationElearnings->add($evaluationElearning);
  1080.             $evaluationElearning->setUser($this);
  1081.         }
  1082.         return $this;
  1083.     }
  1084.     public function removeEvaluationElearning(EvaluationElearning $evaluationElearning): self
  1085.     {
  1086.         if ($this->evaluationElearnings->removeElement($evaluationElearning)) {
  1087.             // set the owning side to null (unless already changed)
  1088.             if ($evaluationElearning->getUser() === $this) {
  1089.                 $evaluationElearning->setUser(null);
  1090.             }
  1091.         }
  1092.         return $this;
  1093.     }
  1094.     public function getNomsociete(): ?string
  1095.     {
  1096.         return $this->nomsociete;
  1097.     }
  1098.     public function setNomsociete(?string $nomsociete): self
  1099.     {
  1100.         $this->nomsociete $nomsociete;
  1101.         return $this;
  1102.     }
  1103.     public function getAdressesociete(): ?string
  1104.     {
  1105.         return $this->adressesociete;
  1106.     }
  1107.     public function setAdressesociete(?string $adressesociete): self
  1108.     {
  1109.         $this->adressesociete $adressesociete;
  1110.         return $this;
  1111.     }
  1112.     public function getMatricule(): ?string
  1113.     {
  1114.         return $this->matricule;
  1115.     }
  1116.     public function setMatricule(?string $matricule): self
  1117.     {
  1118.         $this->matricule $matricule;
  1119.         return $this;
  1120.     }
  1121.     /**
  1122.      * @return Collection<int, CommentElearning>
  1123.      */
  1124.     public function getCommentElearnings(): Collection
  1125.     {
  1126.         return $this->commentElearnings;
  1127.     }
  1128.     public function addCommentElearning(CommentElearning $commentElearning): self
  1129.     {
  1130.         if (!$this->commentElearnings->contains($commentElearning)) {
  1131.             $this->commentElearnings->add($commentElearning);
  1132.             $commentElearning->setUser($this);
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     public function removeCommentElearning(CommentElearning $commentElearning): self
  1137.     {
  1138.         if ($this->commentElearnings->removeElement($commentElearning)) {
  1139.             // set the owning side to null (unless already changed)
  1140.             if ($commentElearning->getUser() === $this) {
  1141.                 $commentElearning->setUser(null);
  1142.             }
  1143.         }
  1144.         return $this;
  1145.     }
  1146.     /**
  1147.      * @return Collection<int, CommentElearning>
  1148.      */
  1149.     public function getCommentLikes(): Collection
  1150.     {
  1151.         return $this->commentLikes;
  1152.     }
  1153.     public function addCommentLike(CommentElearning $commentLike): self
  1154.     {
  1155.         if (!$this->commentLikes->contains($commentLike)) {
  1156.             $this->commentLikes->add($commentLike);
  1157.             $commentLike->addLikedBy($this);
  1158.         }
  1159.         return $this;
  1160.     }
  1161.     public function removeCommentLike(CommentElearning $commentLike): self
  1162.     {
  1163.         if ($this->commentLikes->removeElement($commentLike)) {
  1164.             $commentLike->removeLikedBy($this);
  1165.         }
  1166.         return $this;
  1167.     }
  1168.     /**
  1169.      * @return Collection<int, ChatFormation>
  1170.      */
  1171.     public function getChatFormations(): Collection
  1172.     {
  1173.         return $this->chatFormations;
  1174.     }
  1175.     public function addChatFormation(ChatFormation $chatFormation): self
  1176.     {
  1177.         if (!$this->chatFormations->contains($chatFormation)) {
  1178.             $this->chatFormations->add($chatFormation);
  1179.             $chatFormation->setSender($this);
  1180.         }
  1181.         return $this;
  1182.     }
  1183.     public function removeChatFormation(ChatFormation $chatFormation): self
  1184.     {
  1185.         if ($this->chatFormations->removeElement($chatFormation)) {
  1186.             // set the owning side to null (unless already changed)
  1187.             if ($chatFormation->getSender() === $this) {
  1188.                 $chatFormation->setSender(null);
  1189.             }
  1190.         }
  1191.         return $this;
  1192.     }
  1193.     /**
  1194.      * @return Collection<int, Coupon>
  1195.      */
  1196.     public function getCoupons(): Collection
  1197.     {
  1198.         return $this->coupons;
  1199.     }
  1200.     public function addCoupon(Coupon $coupon): self
  1201.     {
  1202.         if (!$this->coupons->contains($coupon)) {
  1203.             $this->coupons->add($coupon);
  1204.             $coupon->setUser($this);
  1205.         }
  1206.         return $this;
  1207.     }
  1208.     public function removeCoupon(Coupon $coupon): self
  1209.     {
  1210.         if ($this->coupons->removeElement($coupon)) {
  1211.             // set the owning side to null (unless already changed)
  1212.             if ($coupon->getUser() === $this) {
  1213.                 $coupon->setUser(null);
  1214.             }
  1215.         }
  1216.         return $this;
  1217.     }
  1218. }