src/Entity/Missions.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MissionsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassMissionsRepository::class)]
  8. class Missions
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length50nullabletrue)]
  15.     private $entreprise_concernee;
  16.     #[ORM\Column(type'text')]
  17.     private $contexte;
  18.     #[ORM\Column(type'text')]
  19.     private $objectifs;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private $livrable;
  22.     #[ORM\Column(type'date')]
  23.     private $date_debut;
  24.     #[ORM\Column(type'integer')]
  25.     private $duree;
  26.     #[ORM\Column(type'string'length50nullabletrue)]
  27.     private $unite_duree;
  28.     #[ORM\Column(type'float'nullabletrue)]
  29.     private $budget;
  30.     #[ORM\Column(type'integer')]
  31.     private $experience_dmd;
  32.     #[ORM\Column(type'string'length50nullabletrue)]
  33.     private $niveau_etude_dmd;
  34.     #[ORM\Column(type'string'length50nullabletrue)]
  35.     private $auteur_mission;
  36.     #[ORM\Column(type'string'length50)]
  37.     private $reference_mission;
  38.     #[ORM\Column(type'datetime')]
  39.     private $date_publication;
  40.     #[ORM\Column(type'boolean')]
  41.     private $statut true;
  42.     #[ORM\Column(type'string'length50nullabletrue)]
  43.     private $CRA;
  44.     #[ORM\Column(type'string'length50nullabletrue)]
  45.     private $facture;
  46.     #[ORM\ManyToOne(targetEntityLocalisation::class, inversedBy'missions')]
  47.     private $localisation;
  48.     #[ORM\ManyToMany(targetEntityMetiers::class, inversedBy'missions')]
  49.     private $metier;
  50.     #[ORM\ManyToMany(targetEntityNiveauEtude::class, inversedBy'missions')]
  51.     private $niveau_etude;
  52.     #[ORM\ManyToMany(targetEntityCompetences::class, inversedBy'missions')]
  53.     private $competence;
  54.     #[ORM\OneToMany(mappedBy'mission'targetEntityReponsesAO::class)]
  55.     private $reponsesAOs;
  56.     #[ORM\ManyToOne(targetEntityAdministrateurs::class, inversedBy'missions')]
  57.     private $admin;
  58.     #[ORM\ManyToOne(targetEntityConsultants::class, inversedBy'missions')]
  59.     private $consultant;
  60.     #[ORM\ManyToOne(targetEntityComerciaux::class, inversedBy'missions')]
  61.     private $commercial;
  62.     #[ORM\OneToMany(mappedBy'mission'targetEntityEvaluationCON::class)]
  63.     private $evaluationCONs;
  64.     #[ORM\OneToMany(mappedBy'mission'targetEntityEvaluationCOM::class)]
  65.     private $evaluationCOMs;
  66.     #[ORM\Column(type'string'length255)]
  67.     private $titre;
  68.     #[ORM\ManyToOne(targetEntityEntreprises::class, inversedBy'missions')]
  69.     private $entreprise;
  70.     #[ORM\Column(type'string'length255nullabletrue)]
  71.     private $modalite;
  72.     #[ORM\Column(type'string'length100nullabletrue)]
  73.     private $ville;
  74.     #[ORM\Column(type'string'length20nullabletrue)]
  75.     private $cp;
  76.     #[ORM\Column(type'blob'nullabletrue)]
  77.     private $logo_client;
  78.     #[ORM\Column(nullabletrue)]
  79.     private ?bool $confidentialite null;
  80.     #[ORM\ManyToMany(targetEntityConsultants::class, inversedBy'favoris')]
  81.     private Collection $favoris;
  82.     public function __construct()
  83.     {
  84.         $this->metier = new ArrayCollection();
  85.         $this->niveau_etude = new ArrayCollection();
  86.         $this->competence = new ArrayCollection();
  87.         $this->reponsesAOs = new ArrayCollection();
  88.         $this->evaluationCONs = new ArrayCollection();
  89.         $this->evaluationCOMs = new ArrayCollection();
  90.         $this->favoris = new ArrayCollection();
  91.     }
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     public function getEntrepriseConcernee(): ?string
  97.     {
  98.         return $this->entreprise_concernee;
  99.     }
  100.     public function setEntrepriseConcernee(?string $entreprise_concernee): self
  101.     {
  102.         $this->entreprise_concernee $entreprise_concernee;
  103.         return $this;
  104.     }
  105.     public function getContexte(): ?string
  106.     {
  107.         return $this->contexte;
  108.     }
  109.     public function setContexte(string $contexte): self
  110.     {
  111.         $this->contexte $contexte;
  112.         return $this;
  113.     }
  114.     public function getObjectifs(): ?string
  115.     {
  116.         return $this->objectifs;
  117.     }
  118.     public function setObjectifs(string $objectifs): self
  119.     {
  120.         $this->objectifs $objectifs;
  121.         return $this;
  122.     }
  123.     public function getLivrable(): ?string
  124.     {
  125.         return $this->livrable;
  126.     }
  127.     public function setLivrable(?string $livrable): self
  128.     {
  129.         $this->livrable $livrable;
  130.         return $this;
  131.     }
  132.     public function getDateDebut(): ?\DateTimeInterface
  133.     {
  134.         return $this->date_debut;
  135.     }
  136.     public function setDateDebut(\DateTimeInterface $date_debut): self
  137.     {
  138.         $this->date_debut $date_debut;
  139.         return $this;
  140.     }
  141.     public function getDuree(): ?int
  142.     {
  143.         return $this->duree;
  144.     }
  145.     public function setDuree(int $duree): self
  146.     {
  147.         $this->duree $duree;
  148.         return $this;
  149.     }
  150.     public function getUniteDuree(): ?string
  151.     {
  152.         return $this->unite_duree;
  153.     }
  154.     public function setUniteDuree(string $unite_duree): self
  155.     {
  156.         $this->unite_duree $unite_duree;
  157.         return $this;
  158.     }
  159.     public function getBudget(): ?float
  160.     {
  161.         return $this->budget;
  162.     }
  163.     public function setBudget(float $budget): self
  164.     {
  165.         $this->budget $budget;
  166.         return $this;
  167.     }
  168.     public function getExperienceDmd(): ?int
  169.     {
  170.         return $this->experience_dmd;
  171.     }
  172.     public function setExperienceDmd(int $experience_dmd): self
  173.     {
  174.         $this->experience_dmd $experience_dmd;
  175.         return $this;
  176.     }
  177.     public function getNiveauEtudeDmd(): ?string
  178.     {
  179.         return $this->niveau_etude_dmd;
  180.     }
  181.     public function setNiveauEtudeDmd(?string $niveau_etude_dmd): self
  182.     {
  183.         $this->niveau_etude_dmd $niveau_etude_dmd;
  184.         return $this;
  185.     }
  186.     public function getAuteurMission(): ?string
  187.     {
  188.         return $this->auteur_mission;
  189.     }
  190.     public function setAuteurMission(?string $auteur_mission): self
  191.     {
  192.         $this->auteur_mission $auteur_mission;
  193.         return $this;
  194.     }
  195.     public function getReferenceMission(): ?string
  196.     {
  197.         return $this->reference_mission;
  198.     }
  199.     public function setReferenceMission(string $reference_mission): self
  200.     {
  201.         $this->reference_mission $reference_mission;
  202.         return $this;
  203.     }
  204.     public function getDatePublication(): ?\DateTimeInterface
  205.     {
  206.         return $this->date_publication;
  207.     }
  208.     public function setDatePublication(\DateTimeInterface $date_publication): self
  209.     {
  210.         $this->date_publication $date_publication;
  211.         return $this;
  212.     }
  213.     public function getStatut(): ?bool
  214.     {
  215.         return $this->statut;
  216.     }
  217.     public function setStatut(bool $statut): self
  218.     {
  219.         $this->statut $statut;
  220.         return $this;
  221.     }
  222.     public function getCRA(): ?string
  223.     {
  224.         return $this->CRA;
  225.     }
  226.     public function setCRA(string $CRA): self
  227.     {
  228.         $this->CRA $CRA;
  229.         return $this;
  230.     }
  231.     public function getFacture(): ?string
  232.     {
  233.         return $this->facture;
  234.     }
  235.     public function setFacture(?string $facture): self
  236.     {
  237.         $this->facture $facture;
  238.         return $this;
  239.     }
  240.     public function getLocalisation(): ?Localisation
  241.     {
  242.         return $this->localisation;
  243.     }
  244.     public function setLocalisation(?Localisation $localisation): self
  245.     {
  246.         $this->localisation $localisation;
  247.         return $this;
  248.     }
  249.     /**
  250.      * @return Collection<int, Metiers>
  251.      */
  252.     public function getMetier(): Collection
  253.     {
  254.         return $this->metier;
  255.     }
  256.     public function addMetier(Metiers $metier): self
  257.     {
  258.         if (!$this->metier->contains($metier)) {
  259.             $this->metier[] = $metier;
  260.         }
  261.         return $this;
  262.     }
  263.     public function removeMetier(Metiers $metier): self
  264.     {
  265.         $this->metier->removeElement($metier);
  266.         return $this;
  267.     }
  268.     /**
  269.      * @return Collection<int, NiveauEtude>
  270.      */
  271.     public function getNiveauEtude(): Collection
  272.     {
  273.         return $this->niveau_etude;
  274.     }
  275.     public function addNiveauEtude(NiveauEtude $niveauEtude): self
  276.     {
  277.         if (!$this->niveau_etude->contains($niveauEtude)) {
  278.             $this->niveau_etude[] = $niveauEtude;
  279.         }
  280.         return $this;
  281.     }
  282.     public function removeNiveauEtude(NiveauEtude $niveauEtude): self
  283.     {
  284.         $this->niveau_etude->removeElement($niveauEtude);
  285.         return $this;
  286.     }
  287.     /**
  288.      * @return Collection<int, Competences>
  289.      */
  290.     public function getCompetence(): Collection
  291.     {
  292.         return $this->competence;
  293.     }
  294.     public function addCompetence(Competences $competence): self
  295.     {
  296.         if (!$this->competence->contains($competence)) {
  297.             $this->competence[] = $competence;
  298.         }
  299.         return $this;
  300.     }
  301.     public function removeCompetence(Competences $competence): self
  302.     {
  303.         $this->competence->removeElement($competence);
  304.         return $this;
  305.     }
  306.     /**
  307.      * @return Collection<int, ReponsesAO>
  308.      */
  309.     public function getReponsesAOs(): Collection
  310.     {
  311.         return $this->reponsesAOs;
  312.     }
  313.     public function addReponsesAO(ReponsesAO $reponsesAO): self
  314.     {
  315.         if (!$this->reponsesAOs->contains($reponsesAO)) {
  316.             $this->reponsesAOs[] = $reponsesAO;
  317.             $reponsesAO->setMission($this);
  318.         }
  319.         return $this;
  320.     }
  321.     public function removeReponsesAO(ReponsesAO $reponsesAO): self
  322.     {
  323.         if ($this->reponsesAOs->removeElement($reponsesAO)) {
  324.             // set the owning side to null (unless already changed)
  325.             if ($reponsesAO->getMission() === $this) {
  326.                 $reponsesAO->setMission(null);
  327.             }
  328.         }
  329.         return $this;
  330.     }
  331.     public function getAdmin(): ?Administrateurs
  332.     {
  333.         return $this->admin;
  334.     }
  335.     public function setAdmin(?Administrateurs $admin): self
  336.     {
  337.         $this->admin $admin;
  338.         return $this;
  339.     }
  340.     public function getConsultant(): ?Consultants
  341.     {
  342.         return $this->consultant;
  343.     }
  344.     public function setConsultant(?Consultants $consultant): self
  345.     {
  346.         $this->consultant $consultant;
  347.         return $this;
  348.     }
  349.     public function getCommercial(): ?Comerciaux
  350.     {
  351.         return $this->commercial;
  352.     }
  353.     public function setCommercial(?Comerciaux $commercial): self
  354.     {
  355.         $this->commercial $commercial;
  356.         return $this;
  357.     }
  358.     /**
  359.      * @return Collection<int, EvaluationCON>
  360.      */
  361.     public function getEvaluationCONs(): Collection
  362.     {
  363.         return $this->evaluationCONs;
  364.     }
  365.     public function addEvaluationCON(EvaluationCON $evaluationCON): self
  366.     {
  367.         if (!$this->evaluationCONs->contains($evaluationCON)) {
  368.             $this->evaluationCONs[] = $evaluationCON;
  369.             $evaluationCON->setMission($this);
  370.         }
  371.         return $this;
  372.     }
  373.     public function removeEvaluationCON(EvaluationCON $evaluationCON): self
  374.     {
  375.         if ($this->evaluationCONs->removeElement($evaluationCON)) {
  376.             // set the owning side to null (unless already changed)
  377.             if ($evaluationCON->getMission() === $this) {
  378.                 $evaluationCON->setMission(null);
  379.             }
  380.         }
  381.         return $this;
  382.     }
  383.     /**
  384.      * @return Collection<int, EvaluationCOM>
  385.      */
  386.     public function getEvaluationCOMs(): Collection
  387.     {
  388.         return $this->evaluationCOMs;
  389.     }
  390.     public function addEvaluationCOM(EvaluationCOM $evaluationCOM): self
  391.     {
  392.         if (!$this->evaluationCOMs->contains($evaluationCOM)) {
  393.             $this->evaluationCOMs[] = $evaluationCOM;
  394.             $evaluationCOM->setMission($this);
  395.         }
  396.         return $this;
  397.     }
  398.     public function removeEvaluationCOM(EvaluationCOM $evaluationCOM): self
  399.     {
  400.         if ($this->evaluationCOMs->removeElement($evaluationCOM)) {
  401.             // set the owning side to null (unless already changed)
  402.             if ($evaluationCOM->getMission() === $this) {
  403.                 $evaluationCOM->setMission(null);
  404.             }
  405.         }
  406.         return $this;
  407.     }
  408.     public function getTitre(): ?string
  409.     {
  410.         return $this->titre;
  411.     }
  412.     public function setTitre(string $titre): self
  413.     {
  414.         $this->titre $titre;
  415.         return $this;
  416.     }
  417.     public function getEntreprise(): ?Entreprises
  418.     {
  419.         return $this->entreprise;
  420.     }
  421.     public function setEntreprise(?Entreprises $entreprise): self
  422.     {
  423.         $this->entreprise $entreprise;
  424.         return $this;
  425.     }
  426.     public function getModalite(): ?string
  427.     {
  428.         return $this->modalite;
  429.     }
  430.     public function setModalite(?string $modalite): self
  431.     {
  432.         $this->modalite $modalite;
  433.         return $this;
  434.     }
  435.     public function getVille(): ?string
  436.     {
  437.         return $this->ville;
  438.     }
  439.     public function setVille(?string $ville): self
  440.     {
  441.         $this->ville $ville;
  442.         return $this;
  443.     }
  444.     public function getCp(): ?string
  445.     {
  446.         return $this->cp;
  447.     }
  448.     public function setCp(?string $cp): self
  449.     {
  450.         $this->cp $cp;
  451.         return $this;
  452.     }
  453.     public function getLogoClient()
  454.     {
  455.         return $this->logo_client;
  456.     }
  457.     public function setLogoClient($logo_client): self
  458.     {
  459.         $this->logo_client $logo_client;
  460.         return $this;
  461.     }
  462.     public function isConfidentialite(): ?bool
  463.     {
  464.         return $this->confidentialite;
  465.     }
  466.     public function setConfidentialite(?bool $confidentialite): static
  467.     {
  468.         $this->confidentialite $confidentialite;
  469.         return $this;
  470.     }
  471.     /**
  472.      * @return Collection<int, Consultants>
  473.      */
  474.     public function getFavoris(): Collection
  475.     {
  476.         return $this->favoris;
  477.     }
  478.     public function addFavori(Consultants $favori): static
  479.     {
  480.         if (!$this->favoris->contains($favori)) {
  481.             $this->favoris->add($favori);
  482.         }
  483.         return $this;
  484.     }
  485.     public function removeFavori(Consultants $favori): static
  486.     {
  487.         $this->favoris->removeElement($favori);
  488.         return $this;
  489.     }
  490. }