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

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