src/Entity/Atelier.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AtelierRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassAtelierRepository::class)]
  8. class Atelier implements \Stringable
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $code_bu;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $cout_horaire;
  20.     #[ORM\OneToMany(targetEntityUser::class, mappedBy'atelier')]
  21.     private $users;
  22.     #[ORM\OneToMany(targetEntityMailing::class, mappedBy'atelier')]
  23.     private $mailings;
  24.     #[ORM\OneToMany(targetEntityColisage::class, mappedBy'atelier')]
  25.     private $colisages;
  26.     #[ORM\OneToMany(targetEntityFichePreserie::class, mappedBy'atelier')]
  27.     private $fichePreseries;
  28.     #[ORM\OneToMany(targetEntityFicheControlePreserie::class, mappedBy'atelier')]
  29.     private $ficheControlePreseries;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $code_magasin;
  32.     #[ORM\OneToMany(targetEntityFicheQualite::class, mappedBy'atelier')]
  33.     private $ficheQualites;
  34.     #[ORM\OneToMany(targetEntityFicheQualiteAtelierAuditeur::class, mappedBy'atelier')]
  35.     private $ficheQualiteAtelierAuditeurs;
  36.     #[ORM\OneToMany(targetEntityFormulaireTeteCollection::class, mappedBy'atelier')]
  37.     private $formulaireTeteCollections;
  38.     #[ORM\OneToMany(targetEntityFormulaireCollection::class, mappedBy'atelier')]
  39.     private $formulaireCollections;
  40.     #[ORM\OneToMany(targetEntityFicheQualiteSynthese::class, mappedBy'atelier')]
  41.     private $ficheQualiteSyntheses;
  42.     #[ORM\OneToMany(targetEntityFicheQualiteAtelier::class, mappedBy'atelier')]
  43.     private $ficheQualiteAteliers;
  44.     #[ORM\OneToMany(targetEntityFicheQualiteCent::class, mappedBy'atelier')]
  45.     private $ficheQualiteCents;
  46.     #[ORM\OneToMany(targetEntityFicheReparation::class, mappedBy'atelier')]
  47.     private $ficheReparations;
  48.     #[ORM\OneToMany(targetEntityFicheControleEnCours::class, mappedBy'atelier')]
  49.     private $ficheControleEnCours;
  50.     #[ORM\OneToMany(targetEntityAtelierChaine::class, mappedBy'atelier')]
  51.     private $atelierChaines;
  52.     #[ORM\Column(type'text'nullabletrue)]
  53.     private $adresse;
  54.     #[ORM\Column(type'string'length255nullabletrue)]
  55.     private $code_postal;
  56.     #[ORM\Column(type'string'length255nullabletrue)]
  57.     private $pays;
  58.     #[ORM\Column(type'boolean'nullabletrue)]
  59.     private $actif;
  60.     #[ORM\OneToMany(targetEntityLancement::class, mappedBy'atelier')]
  61.     private $lancements;
  62.     #[ORM\OneToMany(targetEntityDerogation::class, mappedBy'atelier')]
  63.     private $derogations;
  64.     #[ORM\OneToMany(targetEntityDerogationSynthese::class, mappedBy'atelier')]
  65.     private $derogationSyntheses;
  66.     #[ORM\OneToMany(targetEntityFicheAvoir::class, mappedBy'atelier')]
  67.     private $ficheAvoirs;
  68.     #[ORM\Column(length255nullabletrue)]
  69.     private ?string $type null;
  70.     #[ORM\OneToMany(mappedBy'atelier'targetEntityMailIndicateurQualite::class)]
  71.     private Collection $mailIndicateurQualites;
  72.     public function __construct()
  73.     {
  74.         $this->users = new ArrayCollection();
  75.         $this->mailings = new ArrayCollection();
  76.         $this->colisages = new ArrayCollection();
  77.         $this->fichePreseries = new ArrayCollection();
  78.         $this->ficheControlePreseries = new ArrayCollection();
  79.         $this->ficheQualites = new ArrayCollection();
  80.         $this->ficheQualiteAtelierAuditeurs = new ArrayCollection();
  81.         $this->formulaireTeteCollections = new ArrayCollection();
  82.         $this->formulaireCollections = new ArrayCollection();
  83.         $this->ficheQualiteSyntheses = new ArrayCollection();
  84.         $this->ficheQualiteAteliers = new ArrayCollection();
  85.         $this->ficheQualiteCents = new ArrayCollection();
  86.         $this->ficheReparations = new ArrayCollection();
  87.         $this->ficheControleEnCours = new ArrayCollection();
  88.         $this->atelierChaines = new ArrayCollection();
  89.         $this->lancements = new ArrayCollection();
  90.         $this->derogations = new ArrayCollection();
  91.         $this->derogationSyntheses = new ArrayCollection();
  92.         $this->ficheAvoirs = new ArrayCollection();
  93.         $this->mailIndicateurQualites = new ArrayCollection();
  94.     }
  95.     public function __toString(): string
  96.     {
  97.         return (string) $this->name;
  98.     }
  99.     public function getId(): ?int
  100.     {
  101.         return $this->id;
  102.     }
  103.     public function getName(): ?string
  104.     {
  105.         return $this->name;
  106.     }
  107.     public function setName(?string $name): self
  108.     {
  109.         $this->name $name;
  110.         return $this;
  111.     }
  112.     public function getCodeBu(): ?string
  113.     {
  114.         return $this->code_bu;
  115.     }
  116.     public function setCodeBu(?string $code_bu): self
  117.     {
  118.         $this->code_bu $code_bu;
  119.         return $this;
  120.     }
  121.     public function getCoutHoraire(): ?string
  122.     {
  123.         return $this->cout_horaire;
  124.     }
  125.     public function setCoutHoraire(?string $cout_horaire): self
  126.     {
  127.         $this->cout_horaire $cout_horaire;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return Collection|User[]
  132.      */
  133.     public function getUsers(): Collection
  134.     {
  135.         return $this->users;
  136.     }
  137.     public function addUser(User $user): self
  138.     {
  139.         if (!$this->users->contains($user)) {
  140.             $this->users[] = $user;
  141.             $user->setAtelier($this);
  142.         }
  143.         return $this;
  144.     }
  145.     public function removeUser(User $user): self
  146.     {
  147.         if ($this->users->removeElement($user)) {
  148.             // set the owning side to null (unless already changed)
  149.             if ($user->getAtelier() === $this) {
  150.                 $user->setAtelier(null);
  151.             }
  152.         }
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return Collection|Mailing[]
  157.      */
  158.     public function getMailings(): Collection
  159.     {
  160.         return $this->mailings;
  161.     }
  162.     public function addMailing(Mailing $mailing): self
  163.     {
  164.         if (!$this->mailings->contains($mailing)) {
  165.             $this->mailings[] = $mailing;
  166.             $mailing->setAtelier($this);
  167.         }
  168.         return $this;
  169.     }
  170.     public function removeMailing(Mailing $mailing): self
  171.     {
  172.         if ($this->mailings->removeElement($mailing)) {
  173.             // set the owning side to null (unless already changed)
  174.             if ($mailing->getAtelier() === $this) {
  175.                 $mailing->setAtelier(null);
  176.             }
  177.         }
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return Collection|Colisage[]
  182.      */
  183.     public function getColisages(): Collection
  184.     {
  185.         return $this->colisages;
  186.     }
  187.     public function addColisage(Colisage $colisage): self
  188.     {
  189.         if (!$this->colisages->contains($colisage)) {
  190.             $this->colisages[] = $colisage;
  191.             $colisage->setAtelier($this);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeColisage(Colisage $colisage): self
  196.     {
  197.         if ($this->colisages->removeElement($colisage)) {
  198.             // set the owning side to null (unless already changed)
  199.             if ($colisage->getAtelier() === $this) {
  200.                 $colisage->setAtelier(null);
  201.             }
  202.         }
  203.         return $this;
  204.     }
  205.     /**
  206.      * @return Collection|FichePreserie[]
  207.      */
  208.     public function getFichePreseries(): Collection
  209.     {
  210.         return $this->fichePreseries;
  211.     }
  212.     public function addFichePreseries(FichePreserie $fichePreseries): self
  213.     {
  214.         if (!$this->fichePreseries->contains($fichePreseries)) {
  215.             $this->fichePreseries[] = $fichePreseries;
  216.             $fichePreseries->setAtelier($this);
  217.         }
  218.         return $this;
  219.     }
  220.     public function removeFichePreseries(FichePreserie $fichePreseries): self
  221.     {
  222.         if ($this->fichePreseries->removeElement($fichePreseries)) {
  223.             // set the owning side to null (unless already changed)
  224.             if ($fichePreseries->getAtelier() === $this) {
  225.                 $fichePreseries->setAtelier(null);
  226.             }
  227.         }
  228.         return $this;
  229.     }
  230.     /**
  231.      * @return Collection|FicheControlePreserie[]
  232.      */
  233.     public function getFicheControlePreseries(): Collection
  234.     {
  235.         return $this->ficheControlePreseries;
  236.     }
  237.     public function addFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
  238.     {
  239.         if (!$this->ficheControlePreseries->contains($ficheControlePreseries)) {
  240.             $this->ficheControlePreseries[] = $ficheControlePreseries;
  241.             $ficheControlePreseries->setAtelier($this);
  242.         }
  243.         return $this;
  244.     }
  245.     public function removeFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
  246.     {
  247.         if ($this->ficheControlePreseries->removeElement($ficheControlePreseries)) {
  248.             // set the owning side to null (unless already changed)
  249.             if ($ficheControlePreseries->getAtelier() === $this) {
  250.                 $ficheControlePreseries->setAtelier(null);
  251.             }
  252.         }
  253.         return $this;
  254.     }
  255.     /**
  256.      * @return Collection|ColisageResponsable[]
  257.      */
  258.     public function getColisageResponsables(): Collection
  259.     {
  260.         return $this->colisageResponsables;
  261.     }
  262.     public function addColisageReponsable(ColisageResponsable $colisageReponsable): self
  263.     {
  264.         if (!$this->colisageResponsables->contains($colisageReponsable)) {
  265.             $this->colisageResponsables[] = $colisageReponsable;
  266.             $colisageReponsable->setAtelier($this);
  267.         }
  268.         return $this;
  269.     }
  270.     public function removeColisageReponsable(ColisageResponsable $colisageResponsable): self
  271.     {
  272.         if ($this->colisageResponsables->removeElement($colisageResponsable)) {
  273.             // set the owning side to null (unless already changed)
  274.             if ($colisageResponsable->getAtelier() === $this) {
  275.                 $colisageResponsable->setAtelier(null);
  276.             }
  277.         }
  278.         return $this;
  279.     }
  280.     public function getCodeMagasin(): ?string
  281.     {
  282.         return $this->code_magasin;
  283.     }
  284.     public function setCodeMagasin(?string $code_magasin): self
  285.     {
  286.         $this->code_magasin $code_magasin;
  287.         return $this;
  288.     }
  289.     /**
  290.      * @return Collection|FicheQualite[]
  291.      */
  292.     public function getFicheQualites(): Collection
  293.     {
  294.         return $this->ficheQualites;
  295.     }
  296.     public function addFicheQualite(FicheQualite $ficheQualite): self
  297.     {
  298.         if (!$this->ficheQualites->contains($ficheQualite)) {
  299.             $this->ficheQualites[] = $ficheQualite;
  300.             $ficheQualite->setAtelier($this);
  301.         }
  302.         return $this;
  303.     }
  304.     public function removeFicheQualite(FicheQualite $ficheQualite): self
  305.     {
  306.         if ($this->ficheQualites->removeElement($ficheQualite)) {
  307.             // set the owning side to null (unless already changed)
  308.             if ($ficheQualite->getAtelier() === $this) {
  309.                 $ficheQualite->setAtelier(null);
  310.             }
  311.         }
  312.         return $this;
  313.     }
  314.     /**
  315.      * @return Collection|FicheQualiteAtelierAuditeur[]
  316.      */
  317.     public function getFicheQualiteAtelierAuditeurs(): Collection
  318.     {
  319.         return $this->ficheQualiteAtelierAuditeurs;
  320.     }
  321.     public function addFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
  322.     {
  323.         if (!$this->ficheQualiteAtelierAuditeurs->contains($ficheQualiteAtelierAuditeur)) {
  324.             $this->ficheQualiteAtelierAuditeurs[] = $ficheQualiteAtelierAuditeur;
  325.             $ficheQualiteAtelierAuditeur->setAtelier($this);
  326.         }
  327.         return $this;
  328.     }
  329.     public function removeFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
  330.     {
  331.         if ($this->ficheQualiteAtelierAuditeurs->removeElement($ficheQualiteAtelierAuditeur)) {
  332.             // set the owning side to null (unless already changed)
  333.             if ($ficheQualiteAtelierAuditeur->getAtelier() === $this) {
  334.                 $ficheQualiteAtelierAuditeur->setAtelier(null);
  335.             }
  336.         }
  337.         return $this;
  338.     }
  339.     /**
  340.      * @return Collection|FormulaireTeteCollection[]
  341.      */
  342.     public function getFormulaireTeteCollections(): Collection
  343.     {
  344.         return $this->formulaireTeteCollections;
  345.     }
  346.     public function addFormulaireTeteCollection(FormulaireTeteCollection $formulaireTeteCollection): self
  347.     {
  348.         if (!$this->formulaireTeteCollections->contains($formulaireTeteCollection)) {
  349.             $this->formulaireTeteCollections[] = $formulaireTeteCollection;
  350.             $formulaireTeteCollection->setAtelier($this);
  351.         }
  352.         return $this;
  353.     }
  354.     public function removeFormulaireTeteCollection(FormulaireTeteCollection $formulaireTeteCollection): self
  355.     {
  356.         if ($this->formulaireTeteCollections->removeElement($formulaireTeteCollection)) {
  357.             // set the owning side to null (unless already changed)
  358.             if ($formulaireTeteCollection->getAtelier() === $this) {
  359.                 $formulaireTeteCollection->setAtelier(null);
  360.             }
  361.         }
  362.         return $this;
  363.     }
  364.     /**
  365.      * @return Collection|FormulaireCollection[]
  366.      */
  367.     public function getFormulaireCollections(): Collection
  368.     {
  369.         return $this->formulaireCollections;
  370.     }
  371.     public function addFormulaireCollection(FormulaireCollection $formulaireCollection): self
  372.     {
  373.         if (!$this->formulaireCollections->contains($formulaireCollection)) {
  374.             $this->formulaireCollections[] = $formulaireCollection;
  375.             $formulaireCollection->setAtelier($this);
  376.         }
  377.         return $this;
  378.     }
  379.     public function removeFormulaireCollection(FormulaireCollection $formulaireCollection): self
  380.     {
  381.         if ($this->formulaireCollections->removeElement($formulaireCollection)) {
  382.             // set the owning side to null (unless already changed)
  383.             if ($formulaireCollection->getAtelier() === $this) {
  384.                 $formulaireCollection->setAtelier(null);
  385.             }
  386.         }
  387.         return $this;
  388.     }
  389.     /**
  390.      * @return Collection|FicheQualiteSynthese[]
  391.      */
  392.     public function getFicheQualiteSyntheses(): Collection
  393.     {
  394.         return $this->ficheQualiteSyntheses;
  395.     }
  396.     public function addFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
  397.     {
  398.         if (!$this->ficheQualiteSyntheses->contains($ficheQualiteSynthesis)) {
  399.             $this->ficheQualiteSyntheses[] = $ficheQualiteSynthesis;
  400.             $ficheQualiteSynthesis->setAtelier($this);
  401.         }
  402.         return $this;
  403.     }
  404.     public function removeFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
  405.     {
  406.         if ($this->ficheQualiteSyntheses->removeElement($ficheQualiteSynthesis)) {
  407.             // set the owning side to null (unless already changed)
  408.             if ($ficheQualiteSynthesis->getAtelier() === $this) {
  409.                 $ficheQualiteSynthesis->setAtelier(null);
  410.             }
  411.         }
  412.         return $this;
  413.     }
  414.     /**
  415.      * @return Collection|FicheQualiteAtelier[]
  416.      */
  417.     public function getFicheQualiteAteliers(): Collection
  418.     {
  419.         return $this->ficheQualiteAteliers;
  420.     }
  421.     public function addFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
  422.     {
  423.         if (!$this->ficheQualiteAteliers->contains($ficheQualiteAtelier)) {
  424.             $this->ficheQualiteAteliers[] = $ficheQualiteAtelier;
  425.             $ficheQualiteAtelier->setAtelier($this);
  426.         }
  427.         return $this;
  428.     }
  429.     public function removeFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
  430.     {
  431.         if ($this->ficheQualiteAteliers->removeElement($ficheQualiteAtelier)) {
  432.             // set the owning side to null (unless already changed)
  433.             if ($ficheQualiteAtelier->getAtelier() === $this) {
  434.                 $ficheQualiteAtelier->setAtelier(null);
  435.             }
  436.         }
  437.         return $this;
  438.     }
  439.     /**
  440.      * @return Collection|FicheQualiteCent[]
  441.      */
  442.     public function getFicheQualiteCents(): Collection
  443.     {
  444.         return $this->ficheQualiteCents;
  445.     }
  446.     public function addFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
  447.     {
  448.         if (!$this->ficheQualiteCents->contains($ficheQualiteCent)) {
  449.             $this->ficheQualiteCents[] = $ficheQualiteCent;
  450.             $ficheQualiteCent->setAtelier($this);
  451.         }
  452.         return $this;
  453.     }
  454.     public function removeFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
  455.     {
  456.         if ($this->ficheQualiteCents->removeElement($ficheQualiteCent)) {
  457.             // set the owning side to null (unless already changed)
  458.             if ($ficheQualiteCent->getAtelier() === $this) {
  459.                 $ficheQualiteCent->setAtelier(null);
  460.             }
  461.         }
  462.         return $this;
  463.     }
  464.     /**
  465.      * @return Collection<int, FicheReparation>
  466.      */
  467.     public function getFicheReparations(): Collection
  468.     {
  469.         return $this->ficheReparations;
  470.     }
  471.     public function addFicheReparation(FicheReparation $ficheReparation): self
  472.     {
  473.         if (!$this->ficheReparations->contains($ficheReparation)) {
  474.             $this->ficheReparations[] = $ficheReparation;
  475.             $ficheReparation->setAtelier($this);
  476.         }
  477.         return $this;
  478.     }
  479.     public function removeFicheReparation(FicheReparation $ficheReparation): self
  480.     {
  481.         if ($this->ficheReparations->removeElement($ficheReparation)) {
  482.             // set the owning side to null (unless already changed)
  483.             if ($ficheReparation->getAtelier() === $this) {
  484.                 $ficheReparation->setAtelier(null);
  485.             }
  486.         }
  487.         return $this;
  488.     }
  489.     /**
  490.      * @return Collection<int, FicheControleEnCours>
  491.      */
  492.     public function getFicheControleEnCours(): Collection
  493.     {
  494.         return $this->ficheControleEnCours;
  495.     }
  496.     public function addFicheControleEnCour(FicheControleEnCours $ficheControleEnCour): self
  497.     {
  498.         if (!$this->ficheControleEnCours->contains($ficheControleEnCour)) {
  499.             $this->ficheControleEnCours[] = $ficheControleEnCour;
  500.             $ficheControleEnCour->setAtelier($this);
  501.         }
  502.         return $this;
  503.     }
  504.     public function removeFicheControleEnCour(FicheControleEnCours $ficheControleEnCour): self
  505.     {
  506.         if ($this->ficheControleEnCours->removeElement($ficheControleEnCour)) {
  507.             // set the owning side to null (unless already changed)
  508.             if ($ficheControleEnCour->getAtelier() === $this) {
  509.                 $ficheControleEnCour->setAtelier(null);
  510.             }
  511.         }
  512.         return $this;
  513.     }
  514.     /**
  515.      * @return Collection<int, AtelierChaine>
  516.      */
  517.     public function getAtelierChaines(): Collection
  518.     {
  519.         return $this->atelierChaines;
  520.     }
  521.     public function addAtelierChaine(AtelierChaine $atelierChaine): self
  522.     {
  523.         if (!$this->atelierChaines->contains($atelierChaine)) {
  524.             $this->atelierChaines[] = $atelierChaine;
  525.             $atelierChaine->setAtelier($this);
  526.         }
  527.         return $this;
  528.     }
  529.     public function removeAtelierChaine(AtelierChaine $atelierChaine): self
  530.     {
  531.         if ($this->atelierChaines->removeElement($atelierChaine)) {
  532.             // set the owning side to null (unless already changed)
  533.             if ($atelierChaine->getAtelier() === $this) {
  534.                 $atelierChaine->setAtelier(null);
  535.             }
  536.         }
  537.         return $this;
  538.     }
  539.     public function getAdresse(): ?string
  540.     {
  541.         return $this->adresse;
  542.     }
  543.     public function setAdresse(?string $adresse): self
  544.     {
  545.         $this->adresse $adresse;
  546.         return $this;
  547.     }
  548.     public function getCodePostal(): ?string
  549.     {
  550.         return $this->code_postal;
  551.     }
  552.     public function setCodePostal(?string $code_postal): self
  553.     {
  554.         $this->code_postal $code_postal;
  555.         return $this;
  556.     }
  557.     public function getPays(): ?string
  558.     {
  559.         return $this->pays;
  560.     }
  561.     public function setPays(?string $pays): self
  562.     {
  563.         $this->pays $pays;
  564.         return $this;
  565.     }
  566.     public function getActif(): ?bool
  567.     {
  568.         return $this->actif;
  569.     }
  570.     public function setActif(?bool $actif): self
  571.     {
  572.         $this->actif $actif;
  573.         return $this;
  574.     }
  575.     /**
  576.      * @return Collection<int, Lancement>
  577.      */
  578.     public function getLancements(): Collection
  579.     {
  580.         return $this->lancements;
  581.     }
  582.     public function addLancement(Lancement $lancement): self
  583.     {
  584.         if (!$this->lancements->contains($lancement)) {
  585.             $this->lancements[] = $lancement;
  586.             $lancement->setAtelier($this);
  587.         }
  588.         return $this;
  589.     }
  590.     public function removeLancement(Lancement $lancement): self
  591.     {
  592.         if ($this->lancements->removeElement($lancement)) {
  593.             // set the owning side to null (unless already changed)
  594.             if ($lancement->getAtelier() === $this) {
  595.                 $lancement->setAtelier(null);
  596.             }
  597.         }
  598.         return $this;
  599.     }
  600.     /**
  601.      * @return Collection<int, Derogation>
  602.      */
  603.     public function getDerogations(): Collection
  604.     {
  605.         return $this->derogations;
  606.     }
  607.     public function addDerogation(Derogation $derogation): self
  608.     {
  609.         if (!$this->derogations->contains($derogation)) {
  610.             $this->derogations[] = $derogation;
  611.             $derogation->setAtelier($this);
  612.         }
  613.         return $this;
  614.     }
  615.     public function removeDerogation(Derogation $derogation): self
  616.     {
  617.         if ($this->derogations->removeElement($derogation)) {
  618.             // set the owning side to null (unless already changed)
  619.             if ($derogation->getAtelier() === $this) {
  620.                 $derogation->setAtelier(null);
  621.             }
  622.         }
  623.         return $this;
  624.     }
  625.     /**
  626.      * @return Collection<int, DerogationSynthese>
  627.      */
  628.     public function getDerogationSyntheses(): Collection
  629.     {
  630.         return $this->derogationSyntheses;
  631.     }
  632.     public function addDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  633.     {
  634.         if (!$this->derogationSyntheses->contains($derogationSynthesis)) {
  635.             $this->derogationSyntheses[] = $derogationSynthesis;
  636.             $derogationSynthesis->setAtelier($this);
  637.         }
  638.         return $this;
  639.     }
  640.     public function removeDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  641.     {
  642.         if ($this->derogationSyntheses->removeElement($derogationSynthesis)) {
  643.             // set the owning side to null (unless already changed)
  644.             if ($derogationSynthesis->getAtelier() === $this) {
  645.                 $derogationSynthesis->setAtelier(null);
  646.             }
  647.         }
  648.         return $this;
  649.     }
  650.     /**
  651.      * @return Collection<int, FicheAvoir>
  652.      */
  653.     public function getFicheAvoirs(): Collection
  654.     {
  655.         return $this->ficheAvoirs;
  656.     }
  657.     public function addFicheAvoir(FicheAvoir $ficheAvoir): self
  658.     {
  659.         if (!$this->ficheAvoirs->contains($ficheAvoir)) {
  660.             $this->ficheAvoirs[] = $ficheAvoir;
  661.             $ficheAvoir->setAtelier($this);
  662.         }
  663.         return $this;
  664.     }
  665.     public function removeFicheAvoir(FicheAvoir $ficheAvoir): self
  666.     {
  667.         if ($this->ficheAvoirs->removeElement($ficheAvoir)) {
  668.             // set the owning side to null (unless already changed)
  669.             if ($ficheAvoir->getAtelier() === $this) {
  670.                 $ficheAvoir->setAtelier(null);
  671.             }
  672.         }
  673.         return $this;
  674.     }
  675.     public function getType(): ?string
  676.     {
  677.         return $this->type;
  678.     }
  679.     public function setType(?string $type): static
  680.     {
  681.         $this->type $type;
  682.         return $this;
  683.     }
  684.     /**
  685.      * @return Collection<int, MailIndicateurQualite>
  686.      */
  687.     public function getMailIndicateurQualites(): Collection
  688.     {
  689.         return $this->mailIndicateurQualites;
  690.     }
  691.     public function addMailIndicateurQualite(MailIndicateurQualite $mailIndicateurQualite): static
  692.     {
  693.         if (!$this->mailIndicateurQualites->contains($mailIndicateurQualite)) {
  694.             $this->mailIndicateurQualites->add($mailIndicateurQualite);
  695.             $mailIndicateurQualite->setAtelier($this);
  696.         }
  697.         return $this;
  698.     }
  699.     public function removeMailIndicateurQualite(MailIndicateurQualite $mailIndicateurQualite): static
  700.     {
  701.         if ($this->mailIndicateurQualites->removeElement($mailIndicateurQualite)) {
  702.             // set the owning side to null (unless already changed)
  703.             if ($mailIndicateurQualite->getAtelier() === $this) {
  704.                 $mailIndicateurQualite->setAtelier(null);
  705.             }
  706.         }
  707.         return $this;
  708.     }
  709. }