src/Entity/Taille.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TailleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTailleRepository::class)]
  8. class Taille 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\ManyToMany(targetEntityTableauMesure::class, mappedBy'tailles')]
  17.     private $tableauMesures;
  18.     #[ORM\OneToMany(targetEntityTableauMesureTermineValeur::class, mappedBy'taille')]
  19.     private $tableauMesureTermineValeurs;
  20.     #[ORM\OneToMany(targetEntityTableauMesureEnCoursValeur::class, mappedBy'taille')]
  21.     private $tableauMesureEnCoursValeurs;
  22.     #[ORM\OneToMany(targetEntityFicheControlePreserie::class, mappedBy'taille')]
  23.     private $ficheControlePreseries;
  24.     #[ORM\OneToMany(targetEntityDonneeReference::class, mappedBy'taille')]
  25.     private $donneeReferences;
  26.     #[ORM\OneToMany(targetEntityFicheQualite::class, mappedBy'taille')]
  27.     private $ficheQualites;
  28.     #[ORM\OneToMany(targetEntityFicheQualiteAtelierAuditeur::class, mappedBy'taille')]
  29.     private $ficheQualiteAtelierAuditeurs;
  30.     #[ORM\OneToMany(targetEntityFicheQualiteAtelier::class, mappedBy'taille')]
  31.     private $ficheQualiteAteliers;
  32.     #[ORM\OneToMany(targetEntityFicheQualiteCent::class, mappedBy'taille')]
  33.     private $ficheQualiteCents;
  34.     #[ORM\OneToMany(targetEntityFicheReparation::class, mappedBy'taille')]
  35.     private $ficheReparations;
  36.     #[ORM\OneToMany(targetEntityDerogationSynthese::class, mappedBy'taille')]
  37.     private $derogationSyntheses;
  38.     #[ORM\OneToMany(targetEntityDerogation::class, mappedBy'taille')]
  39.     private $derogations;
  40.     #[ORM\OneToMany(targetEntityLancement::class, mappedBy'taille')]
  41.     private $lancements;
  42.     #[ORM\OneToMany(targetEntityJdeCout::class, mappedBy'taille')]
  43.     private $jdeCouts;
  44.     public function __construct()
  45.     {
  46.         $this->tableauMesures = new ArrayCollection();
  47.         $this->tableauMesureTermineValeurs = new ArrayCollection();
  48.         $this->tableauMesureEnCoursValeurs = new ArrayCollection();
  49.         $this->ficheControlePreseries = new ArrayCollection();
  50.         $this->donneeReferences = new ArrayCollection();
  51.         $this->ficheQualites = new ArrayCollection();
  52.         $this->ficheQualiteAtelierAuditeurs = new ArrayCollection();
  53.         $this->ficheQualiteAteliers = new ArrayCollection();
  54.         $this->ficheQualiteCents = new ArrayCollection();
  55.         $this->ficheReparations = new ArrayCollection();
  56.         $this->derogationSyntheses = new ArrayCollection();
  57.         $this->derogations = new ArrayCollection();
  58.         $this->lancements = new ArrayCollection();
  59.         $this->jdeCouts = new ArrayCollection();
  60.     }
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getName(): ?string
  66.     {
  67.         return $this->name;
  68.     }
  69.     public function setName(?string $name): self
  70.     {
  71.         $this->name $name;
  72.         return $this;
  73.     }
  74.     /**
  75.      * @return Collection|TableauMesure[]
  76.      */
  77.     public function getTableauMesures(): Collection
  78.     {
  79.         return $this->tableauMesures;
  80.     }
  81.     public function addTableauMesure(TableauMesure $tableauMesure): self
  82.     {
  83.         if (!$this->tableauMesures->contains($tableauMesure)) {
  84.             $this->tableauMesures[] = $tableauMesure;
  85.             $tableauMesure->addTaille($this);
  86.         }
  87.         return $this;
  88.     }
  89.     public function removeTableauMesure(TableauMesure $tableauMesure): self
  90.     {
  91.         if ($this->tableauMesures->removeElement($tableauMesure)) {
  92.             $tableauMesure->removeTaille($this);
  93.         }
  94.         return $this;
  95.     }
  96.     /**
  97.      * @return Collection|TableauMesureTermineValeur[]
  98.      */
  99.     public function getTableauMesureTermineValeurs(): Collection
  100.     {
  101.         return $this->tableauMesureTermineValeurs;
  102.     }
  103.     public function addTableauMesureTermineValeur(TableauMesureTermineValeur $tableauMesureValeurTaille): self
  104.     {
  105.         if (!$this->tableauMesureTermineValeurs->contains($tableauMesureValeurTaille)) {
  106.             $this->tableauMesureTermineValeurs[] = $tableauMesureValeurTaille;
  107.             $tableauMesureValeurTaille->setTaille($this);
  108.         }
  109.         return $this;
  110.     }
  111.     public function removeTableauMesureTermineValeur(TableauMesureTermineValeur $tableauMesureValeurTaille): self
  112.     {
  113.         if ($this->tableauMesureTermineValeurs->removeElement($tableauMesureValeurTaille)) {
  114.             // set the owning side to null (unless already changed)
  115.             if ($tableauMesureValeurTaille->getTaille() === $this) {
  116.                 $tableauMesureValeurTaille->setTaille(null);
  117.             }
  118.         }
  119.         return $this;
  120.     }
  121.     public function __toString(): string
  122.     {
  123.         return (string) $this->name;
  124.     }
  125.     /**
  126.      * @return Collection|TableauMesureEnCoursValeur[]
  127.      */
  128.     public function getTableauMesureEnCoursValeurs(): Collection
  129.     {
  130.         return $this->tableauMesureEnCoursValeurs;
  131.     }
  132.     public function addTableauMesureEnCoursValeur(TableauMesureEnCoursValeur $tableauMesureEnCoursValeur): self
  133.     {
  134.         if (!$this->tableauMesureEnCoursValeurs->contains($tableauMesureEnCoursValeur)) {
  135.             $this->tableauMesureEnCoursValeurs[] = $tableauMesureEnCoursValeur;
  136.             $tableauMesureEnCoursValeur->setTaille($this);
  137.         }
  138.         return $this;
  139.     }
  140.     public function removeTableauMesureEnCoursValeur(TableauMesureEnCoursValeur $tableauMesureEnCoursValeur): self
  141.     {
  142.         if ($this->tableauMesureEnCoursValeurs->removeElement($tableauMesureEnCoursValeur)) {
  143.             // set the owning side to null (unless already changed)
  144.             if ($tableauMesureEnCoursValeur->getTaille() === $this) {
  145.                 $tableauMesureEnCoursValeur->setTaille(null);
  146.             }
  147.         }
  148.         return $this;
  149.     }
  150.     /**
  151.      * @return Collection|FicheControlePreserie[]
  152.      */
  153.     public function getFicheControlePreseries(): Collection
  154.     {
  155.         return $this->ficheControlePreseries;
  156.     }
  157.     public function addFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
  158.     {
  159.         if (!$this->ficheControlePreseries->contains($ficheControlePreseries)) {
  160.             $this->ficheControlePreseries[] = $ficheControlePreseries;
  161.             $ficheControlePreseries->setTaille($this);
  162.         }
  163.         return $this;
  164.     }
  165.     public function removeFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
  166.     {
  167.         if ($this->ficheControlePreseries->removeElement($ficheControlePreseries)) {
  168.             // set the owning side to null (unless already changed)
  169.             if ($ficheControlePreseries->getTaille() === $this) {
  170.                 $ficheControlePreseries->setTaille(null);
  171.             }
  172.         }
  173.         return $this;
  174.     }
  175.     /**
  176.      * @return Collection|DonneeReference[]
  177.      */
  178.     public function getDonneeReferences(): Collection
  179.     {
  180.         return $this->donneeReferences;
  181.     }
  182.     public function addDonneeReference(DonneeReference $donneeReference): self
  183.     {
  184.         if (!$this->donneeReferences->contains($donneeReference)) {
  185.             $this->donneeReferences[] = $donneeReference;
  186.             $donneeReference->setTaille($this);
  187.         }
  188.         return $this;
  189.     }
  190.     public function removeDonneeReference(DonneeReference $donneeReference): self
  191.     {
  192.         if ($this->donneeReferences->removeElement($donneeReference)) {
  193.             // set the owning side to null (unless already changed)
  194.             if ($donneeReference->getTaille() === $this) {
  195.                 $donneeReference->setTaille(null);
  196.             }
  197.         }
  198.         return $this;
  199.     }
  200.     /**
  201.      * @return Collection|FicheQualite[]
  202.      */
  203.     public function getFicheQualites(): Collection
  204.     {
  205.         return $this->ficheQualites;
  206.     }
  207.     public function addFicheQualite(FicheQualite $ficheQualite): self
  208.     {
  209.         if (!$this->ficheQualites->contains($ficheQualite)) {
  210.             $this->ficheQualites[] = $ficheQualite;
  211.             $ficheQualite->setTaille($this);
  212.         }
  213.         return $this;
  214.     }
  215.     public function removeFicheQualite(FicheQualite $ficheQualite): self
  216.     {
  217.         if ($this->ficheQualites->removeElement($ficheQualite)) {
  218.             // set the owning side to null (unless already changed)
  219.             if ($ficheQualite->getTaille() === $this) {
  220.                 $ficheQualite->setTaille(null);
  221.             }
  222.         }
  223.         return $this;
  224.     }
  225.     /**
  226.      * @return Collection|FicheQualiteAtelierAuditeur[]
  227.      */
  228.     public function getFicheQualiteAtelierAuditeurs(): Collection
  229.     {
  230.         return $this->ficheQualiteAtelierAuditeurs;
  231.     }
  232.     public function addFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
  233.     {
  234.         if (!$this->ficheQualiteAtelierAuditeurs->contains($ficheQualiteAtelierAuditeur)) {
  235.             $this->ficheQualiteAtelierAuditeurs[] = $ficheQualiteAtelierAuditeur;
  236.             $ficheQualiteAtelierAuditeur->setTaille($this);
  237.         }
  238.         return $this;
  239.     }
  240.     public function removeFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
  241.     {
  242.         if ($this->ficheQualiteAtelierAuditeurs->removeElement($ficheQualiteAtelierAuditeur)) {
  243.             // set the owning side to null (unless already changed)
  244.             if ($ficheQualiteAtelierAuditeur->getTaille() === $this) {
  245.                 $ficheQualiteAtelierAuditeur->setTaille(null);
  246.             }
  247.         }
  248.         return $this;
  249.     }
  250.     /**
  251.      * @return Collection|FicheQualiteAtelier[]
  252.      */
  253.     public function getFicheQualiteAteliers(): Collection
  254.     {
  255.         return $this->ficheQualiteAteliers;
  256.     }
  257.     public function addFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
  258.     {
  259.         if (!$this->ficheQualiteAteliers->contains($ficheQualiteAtelier)) {
  260.             $this->ficheQualiteAteliers[] = $ficheQualiteAtelier;
  261.             $ficheQualiteAtelier->setTaille($this);
  262.         }
  263.         return $this;
  264.     }
  265.     public function removeFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
  266.     {
  267.         if ($this->ficheQualiteAteliers->removeElement($ficheQualiteAtelier)) {
  268.             // set the owning side to null (unless already changed)
  269.             if ($ficheQualiteAtelier->getTaille() === $this) {
  270.                 $ficheQualiteAtelier->setTaille(null);
  271.             }
  272.         }
  273.         return $this;
  274.     }
  275.     /**
  276.      * @return Collection|FicheQualiteCent[]
  277.      */
  278.     public function getFicheQualiteCents(): Collection
  279.     {
  280.         return $this->ficheQualiteCents;
  281.     }
  282.     public function addFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
  283.     {
  284.         if (!$this->ficheQualiteCents->contains($ficheQualiteCent)) {
  285.             $this->ficheQualiteCents[] = $ficheQualiteCent;
  286.             $ficheQualiteCent->setTaille($this);
  287.         }
  288.         return $this;
  289.     }
  290.     public function removeFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
  291.     {
  292.         if ($this->ficheQualiteCents->removeElement($ficheQualiteCent)) {
  293.             // set the owning side to null (unless already changed)
  294.             if ($ficheQualiteCent->getTaille() === $this) {
  295.                 $ficheQualiteCent->setTaille(null);
  296.             }
  297.         }
  298.         return $this;
  299.     }
  300.     /**
  301.      * @return Collection<int, FicheReparation>
  302.      */
  303.     public function getFicheReparations(): Collection
  304.     {
  305.         return $this->ficheReparations;
  306.     }
  307.     public function addFicheReparation(FicheReparation $ficheReparation): self
  308.     {
  309.         if (!$this->ficheReparations->contains($ficheReparation)) {
  310.             $this->ficheReparations[] = $ficheReparation;
  311.             $ficheReparation->setTaille($this);
  312.         }
  313.         return $this;
  314.     }
  315.     public function removeFicheReparation(FicheReparation $ficheReparation): self
  316.     {
  317.         if ($this->ficheReparations->removeElement($ficheReparation)) {
  318.             // set the owning side to null (unless already changed)
  319.             if ($ficheReparation->getTaille() === $this) {
  320.                 $ficheReparation->setTaille(null);
  321.             }
  322.         }
  323.         return $this;
  324.     }
  325.     /**
  326.      * @return Collection<int, DerogationSynthese>
  327.      */
  328.     public function getDerogationSyntheses(): Collection
  329.     {
  330.         return $this->derogationSyntheses;
  331.     }
  332.     public function addDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  333.     {
  334.         if (!$this->derogationSyntheses->contains($derogationSynthesis)) {
  335.             $this->derogationSyntheses[] = $derogationSynthesis;
  336.             $derogationSynthesis->setTaille($this);
  337.         }
  338.         return $this;
  339.     }
  340.     public function removeDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  341.     {
  342.         if ($this->derogationSyntheses->removeElement($derogationSynthesis)) {
  343.             // set the owning side to null (unless already changed)
  344.             if ($derogationSynthesis->getTaille() === $this) {
  345.                 $derogationSynthesis->setTaille(null);
  346.             }
  347.         }
  348.         return $this;
  349.     }
  350.     /**
  351.      * @return Collection<int, Derogation>
  352.      */
  353.     public function getDerogations(): Collection
  354.     {
  355.         return $this->derogations;
  356.     }
  357.     public function addDerogation(Derogation $derogation): self
  358.     {
  359.         if (!$this->derogations->contains($derogation)) {
  360.             $this->derogations[] = $derogation;
  361.             $derogation->setTaille($this);
  362.         }
  363.         return $this;
  364.     }
  365.     public function removeDerogation(Derogation $derogation): self
  366.     {
  367.         if ($this->derogations->removeElement($derogation)) {
  368.             // set the owning side to null (unless already changed)
  369.             if ($derogation->getTaille() === $this) {
  370.                 $derogation->setTaille(null);
  371.             }
  372.         }
  373.         return $this;
  374.     }
  375.     /**
  376.      * @return Collection<int, Lancement>
  377.      */
  378.     public function getLancements(): Collection
  379.     {
  380.         return $this->lancements;
  381.     }
  382.     public function addLancement(Lancement $lancement): self
  383.     {
  384.         if (!$this->lancements->contains($lancement)) {
  385.             $this->lancements[] = $lancement;
  386.             $lancement->setTaille($this);
  387.         }
  388.         return $this;
  389.     }
  390.     public function removeLancement(Lancement $lancement): self
  391.     {
  392.         if ($this->lancements->removeElement($lancement)) {
  393.             // set the owning side to null (unless already changed)
  394.             if ($lancement->getTaille() === $this) {
  395.                 $lancement->setTaille(null);
  396.             }
  397.         }
  398.         return $this;
  399.     }
  400.     /**
  401.      * @return Collection<int, JdeCout>
  402.      */
  403.     public function getJdeCouts(): Collection
  404.     {
  405.         return $this->jdeCouts;
  406.     }
  407.     public function addJdeCout(JdeCout $jdeCout): self
  408.     {
  409.         if (!$this->jdeCouts->contains($jdeCout)) {
  410.             $this->jdeCouts[] = $jdeCout;
  411.             $jdeCout->setTaille($this);
  412.         }
  413.         return $this;
  414.     }
  415.     public function removeJdeCout(JdeCout $jdeCout): self
  416.     {
  417.         if ($this->jdeCouts->removeElement($jdeCout)) {
  418.             // set the owning side to null (unless already changed)
  419.             if ($jdeCout->getTaille() === $this) {
  420.                 $jdeCout->setTaille(null);
  421.             }
  422.         }
  423.         return $this;
  424.     }
  425. }