src/Entity/Gestiform/Admin/Cursus/Entretien.php line 21

  1. <?php
  2. namespace App\Entity\Gestiform\Admin\Cursus;
  3. use DateTime;
  4. use App\Entity\AbstractEntity;
  5. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  6. use App\Entity\Gestiform\Admin\Salle;
  7. use App\Entity\Gestiform\Admin\Site;
  8. use App\Entity\Gestiform\Formations\Catalogue\Theme\Theme;
  9. use App\Entity\Gestiform\Formations\Dossier\Dossier;
  10. use App\Entity\Gestiform\Users\Employe;
  11. use App\Entity\Gestiform\Users\Personne;
  12. use App\Repository\Gestiform\Admin\Cursus\EntretienRepository;
  13. use Doctrine\Common\Collections\ArrayCollection;
  14. use Doctrine\Common\Collections\Collection;
  15. use Doctrine\ORM\Mapping as ORM;
  16. #[ORM\Entity(repositoryClassEntretienRepository::class)]
  17. class Entretien extends AbstractEntity
  18. {
  19.     #[ORM\Column(type'text'nullabletrue)]
  20.     private ?string $observations null;
  21.     #[ORM\Column(type'text'nullabletrue)]
  22.     private ?string $commentaire null;
  23.     #[ORM\Column(type'text'nullabletrue)]
  24.     private ?string $compteRendu null;
  25.     #[ORM\Column(type'datetime'nullabletrue)]
  26.     private ?DateTime $start null;
  27.     #[ORM\Column(type'datetime'nullabletrue)]
  28.     private ?DateTime $end null;
  29.     #[ORM\Column(type'boolean'nullabletrue)]
  30.     private bool $bureau false;
  31.     #[ORM\Column(type'boolean')]
  32.     private bool $statut false;
  33.     #[ORM\Column(type'boolean'nullabletrue)]
  34.     private bool $virtuel false;
  35.     #[ORM\Column(type'boolean'nullabletrue)]
  36.     private ?bool $concevoirFormation false;
  37.     #[ORM\Column(type'boolean'nullabletrue)]
  38.     private ?bool $participerPedagogiques false;
  39.     #[ORM\Column(type'boolean'nullabletrue)]
  40.     private ?bool $orienterStagiaires false;
  41.     #[ORM\Column(type'boolean'nullabletrue)]
  42.     private bool $cvTheque false;
  43.     #[ORM\Column(type'datetime'nullabletrue)]
  44.     private ?DateTime $quand null;
  45.     #[ORM\ManyToOne(targetEntitySite::class)]
  46.     private ?Site $site null;
  47.     #[ORM\ManyToOne(targetEntitySalle::class)]
  48.     private ?Salle $salle null;
  49.     #[ORM\JoinColumn(nullabletrue)]
  50.     #[ORM\ManyToOne(targetEntityEmploye::class)]
  51.     private ?Employe $reoriente null;
  52.     #[ORM\JoinColumn(nullabletrue)]
  53.     #[ORM\ManyToOne(targetEntityEmploye::class)]
  54.     private ?Employe $examinateur null;
  55.     #[ORM\OneToMany(mappedBy'entretien'targetEntityCursusReponses::class, cascade: ['all'], orphanRemovaltrue)]
  56.     private Collection $reponses;
  57.     #[ORM\JoinColumn(nullabletrue)]
  58.     #[ORM\ManyToOne(targetEntityPersonne::class, inversedBy'entretiens')]
  59.     private ?Personne $personne null;
  60.     #[ORM\JoinColumn(nullabletrue)]
  61.     #[ORM\ManyToOne(targetEntityDossier::class, cascade: ['persist'], inversedBy'entretiens')]
  62.     private ?Dossier $dossier null;
  63.     #[ORM\ManyToMany(targetEntityTheme::class, cascade: ['persist'])]
  64.     private Collection $themes;
  65.     #[ORM\JoinColumn(nullabletrue)]
  66.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  67.     private ?Masterlistelg $evaluationProfil null;
  68.     #[ORM\JoinColumn(nullabletrue)]
  69.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  70.     private ?Masterlistelg $recontacte null;
  71.     #[ORM\JoinColumn(nullabletrue)]
  72.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  73.     private ?Masterlistelg $appreciation null;
  74.     #[ORM\JoinColumn(nullabletrue)]
  75.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  76.     private ?Masterlistelg $resultat null;
  77.     #[ORM\JoinColumn(nullabletrue)]
  78.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  79.     private ?Masterlistelg $raisonResultat null;
  80.     #[ORM\JoinColumn(nullabletrue)]
  81.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  82.     private ?Masterlistelg $motifRefus null;
  83.     #[ORM\JoinColumn(nullabletrue)]
  84.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  85.     private ?Masterlistelg $admisEnAttente null;
  86.     #[ORM\JoinColumn(nullabletrue)]
  87.     #[ORM\ManyToOne(targetEntityMasterlistelg::class)]
  88.     private ?Masterlistelg $objet null;
  89.     #[ORM\ManyToMany(targetEntityMasterlistelg::class, cascade: ['persist'])]
  90.     private Collection $typeAccompagnements;
  91.     public function __construct()
  92.     {
  93.         $this->reponses = new ArrayCollection();
  94.         $this->themes = new ArrayCollection();
  95.         $this->typeAccompagnements = new ArrayCollection();
  96.     }
  97.     public function getPersonne(): ?Personne
  98.     {
  99.         return $this->personne;
  100.     }
  101.     public function setPersonne(?Personne $personne): self
  102.     {
  103.         $this->personne $personne;
  104.         return $this;
  105.     }
  106.     public function getDossier(): ?Dossier
  107.     {
  108.         return $this->dossier;
  109.     }
  110.     public function setDossier(?Dossier $dossier): self
  111.     {
  112.         $this->dossier $dossier;
  113.         return $this;
  114.     }
  115.     public function getObservations(): ?string
  116.     {
  117.         return $this->observations;
  118.     }
  119.     public function setObservations(?string $observations): self
  120.     {
  121.         $this->observations $observations;
  122.         return $this;
  123.     }
  124.     public function getCommentaire(): ?string
  125.     {
  126.         return $this->commentaire;
  127.     }
  128.     public function setCommentaire(?string $commentaire): self
  129.     {
  130.         $this->commentaire $commentaire;
  131.         return $this;
  132.     }
  133.     public function isBureau(): ?bool
  134.     {
  135.         return $this->bureau;
  136.     }
  137.     public function setBureau(?bool $bureau): self
  138.     {
  139.         $this->bureau $bureau;
  140.         return $this;
  141.     }
  142.     public function isStatut(): bool
  143.     {
  144.         return $this->statut;
  145.     }
  146.     public function setStatut(bool $statut): self
  147.     {
  148.         $this->statut $statut;
  149.         return $this;
  150.     }
  151.     public function isCvTheque(): bool
  152.     {
  153.         return $this->cvTheque;
  154.     }
  155.     public function setCvTheque(bool $cvTheque): self
  156.     {
  157.         $this->cvTheque $cvTheque;
  158.         return $this;
  159.     }
  160.     public function isVirtuel(): ?bool
  161.     {
  162.         return $this->virtuel;
  163.     }
  164.     public function setVirtuel(?bool $virtuel): self
  165.     {
  166.         $this->virtuel $virtuel;
  167.         return $this;
  168.     }
  169.     public function getSite(): ?Site
  170.     {
  171.         return $this->site;
  172.     }
  173.     public function setSite(?Site $site): self
  174.     {
  175.         $this->site $site;
  176.         return $this;
  177.     }
  178.     public function getSalle(): ?Salle
  179.     {
  180.         return $this->salle;
  181.     }
  182.     public function setSalle(?Salle $salle): self
  183.     {
  184.         $this->salle $salle;
  185.         return $this;
  186.     }
  187.     public function getRecontacte(): ?Masterlistelg
  188.     {
  189.         return $this->recontacte;
  190.     }
  191.     public function setRecontacte(?Masterlistelg $recontacte): self
  192.     {
  193.         $this->recontacte $recontacte;
  194.         return $this;
  195.     }
  196.     public function getReoriente(): ?Employe
  197.     {
  198.         return $this->reoriente;
  199.     }
  200.     public function setReoriente(?Employe $reoriente): self
  201.     {
  202.         $this->reoriente $reoriente;
  203.         return $this;
  204.     }
  205.     public function getExaminateur(): ?Employe
  206.     {
  207.         return $this->examinateur;
  208.     }
  209.     public function setExaminateur(?Employe $examinateur): self
  210.     {
  211.         $this->examinateur $examinateur;
  212.         return $this;
  213.     }
  214.     /**
  215.      * @return Collection<int, CursusReponses>
  216.      */
  217.     public function getReponses(): Collection
  218.     {
  219.         return $this->reponses;
  220.     }
  221.     public function addReponse(CursusReponses $reponse): self
  222.     {
  223.         if (!$this->reponses->contains($reponse)) {
  224.             $this->reponses->add($reponse);
  225.             $reponse->setEntretien($this);
  226.         }
  227.         return $this;
  228.     }
  229.     public function removeReponse(CursusReponses $reponse): self
  230.     {
  231.         // set the owning side to null (unless already changed)
  232.         if ($this->reponses->removeElement($reponse) && $reponse->getEntretien() === $this) {
  233.             $reponse->setEntretien(null);
  234.         }
  235.         return $this;
  236.     }
  237.     public function getEvaluationProfil(): ?Masterlistelg
  238.     {
  239.         return $this->evaluationProfil;
  240.     }
  241.     public function setEvaluationProfil(?Masterlistelg $evaluationProfil): self
  242.     {
  243.         $this->evaluationProfil $evaluationProfil;
  244.         return $this;
  245.     }
  246.     public function getAppreciation(): ?Masterlistelg
  247.     {
  248.         return $this->appreciation;
  249.     }
  250.     public function setAppreciation(?Masterlistelg $appreciation): self
  251.     {
  252.         $this->appreciation $appreciation;
  253.         return $this;
  254.     }
  255.     public function getResultat(): ?Masterlistelg
  256.     {
  257.         return $this->resultat;
  258.     }
  259.     public function setResultat(?Masterlistelg $resultat): self
  260.     {
  261.         $this->resultat $resultat;
  262.         return $this;
  263.     }
  264.     public function getRaisonResultat(): ?Masterlistelg
  265.     {
  266.         return $this->raisonResultat;
  267.     }
  268.     public function setRaisonResultat(?Masterlistelg $raisonResultat): self
  269.     {
  270.         $this->raisonResultat $raisonResultat;
  271.         return $this;
  272.     }
  273.     /**
  274.      * @return Collection<int, Theme>
  275.      */
  276.     public function getThemes(): Collection
  277.     {
  278.         return $this->themes;
  279.     }
  280.     public function addTheme(Theme $theme): self
  281.     {
  282.         if (!$this->themes->contains($theme)) {
  283.             $this->themes->add($theme);
  284.         }
  285.         return $this;
  286.     }
  287.     public function removeTheme(Theme $theme): self
  288.     {
  289.         $this->themes->removeElement($theme);
  290.         return $this;
  291.     }
  292.     /**
  293.      * @return Collection<int, Masterlistelg>
  294.      */
  295.     public function getTypeAccompagnements(): Collection
  296.     {
  297.         return $this->typeAccompagnements;
  298.     }
  299.     public function addTypeAccompagnement(Masterlistelg $typeAccompagnement): self
  300.     {
  301.         if (!$this->typeAccompagnements->contains($typeAccompagnement)) {
  302.             $this->typeAccompagnements->add($typeAccompagnement);
  303.         }
  304.         return $this;
  305.     }
  306.     public function removeTypeAccompagnement(Masterlistelg $typeAccompagnement): self
  307.     {
  308.         $this->typeAccompagnements->removeElement($typeAccompagnement);
  309.         return $this;
  310.     }
  311.     public function getMotifRefus(): ?Masterlistelg
  312.     {
  313.         return $this->motifRefus;
  314.     }
  315.     public function setMotifRefus(?Masterlistelg $motifRefus): self
  316.     {
  317.         $this->motifRefus $motifRefus;
  318.         return $this;
  319.     }
  320.     public function getQuand(): ?DateTime
  321.     {
  322.         return $this->quand;
  323.     }
  324.     public function setQuand(?DateTime $quand): self
  325.     {
  326.         $this->quand $quand;
  327.         return $this;
  328.     }
  329.     public function getAdmisEnAttente(): ?Masterlistelg
  330.     {
  331.         return $this->admisEnAttente;
  332.     }
  333.     public function setAdmisEnAttente(?Masterlistelg $admisEnAttente): self
  334.     {
  335.         $this->admisEnAttente $admisEnAttente;
  336.         return $this;
  337.     }
  338.     public function isConcevoirFormation(): ?bool
  339.     {
  340.         return $this->concevoirFormation;
  341.     }
  342.     public function setConcevoirFormation(?bool $concevoirFormation): self
  343.     {
  344.         $this->concevoirFormation $concevoirFormation;
  345.         return $this;
  346.     }
  347.     public function isParticiperPedagogiques(): ?bool
  348.     {
  349.         return $this->participerPedagogiques;
  350.     }
  351.     public function setParticiperPedagogiques(?bool $participerPedagogiques): self
  352.     {
  353.         $this->participerPedagogiques $participerPedagogiques;
  354.         return $this;
  355.     }
  356.     public function isOrienterStagiaires(): ?bool
  357.     {
  358.         return $this->orienterStagiaires;
  359.     }
  360.     public function setOrienterStagiaires(?bool $orienterStagiaires): self
  361.     {
  362.         $this->orienterStagiaires $orienterStagiaires;
  363.         return $this;
  364.     }
  365.     public function getStart(): ?DateTime
  366.     {
  367.         return $this->start;
  368.     }
  369.     public function setStart(?DateTime $start): Entretien
  370.     {
  371.         $this->start $start;
  372.         return $this;
  373.     }
  374.     public function getEnd(): ?DateTime
  375.     {
  376.         return $this->end;
  377.     }
  378.     public function setEnd(?DateTime $end): self
  379.     {
  380.         $this->end $end;
  381.         return $this;
  382.     }
  383.     public function getObjet(): ?Masterlistelg
  384.     {
  385.         return $this->objet;
  386.     }
  387.     public function setObjet(?Masterlistelg $objet): self
  388.     {
  389.         $this->objet $objet;
  390.         return $this;
  391.     }
  392.     public function getCompteRendu(): ?string
  393.     {
  394.         return $this->compteRendu;
  395.     }
  396.     public function setCompteRendu(?string $compteRendu): self
  397.     {
  398.         $this->compteRendu $compteRendu;
  399.         return $this;
  400.     }
  401. }