src/Entity/TableauMesureLibelle.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TableauMesureLibelleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTableauMesureLibelleRepository::class)]
  8. class TableauMesureLibelle 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\OneToMany(targetEntityTableauMesureTermine::class, mappedBy'mesure')]
  17.     private $tableauMesureTermine;
  18.     #[ORM\OneToMany(targetEntityTableauMesureEnCours::class, mappedBy'mesure')]
  19.     private $tableauMesureEnCours;
  20.     
  21.     #[ORM\OneToMany(targetEntityFicheControlePreserieMesure::class, mappedBy'mesure')]
  22.     private $ficheControlePreserieMesures;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $name_en;
  25.     #[ORM\OneToMany(targetEntityFicheQualiteMesure::class, mappedBy'mesure')]
  26.     private $ficheQualiteMesures;
  27.     #[ORM\OneToMany(targetEntityFicheQualiteAtelierAuditeurMesure::class, mappedBy'mesure')]
  28.     private $ficheQualiteAtelierAuditeurMesures;
  29.     #[ORM\OneToMany(targetEntityFicheQualiteAtelierMesure::class, mappedBy'mesure')]
  30.     private $ficheQualiteAtelierMesures;
  31.     #[ORM\OneToMany(targetEntityFicheQualiteCentMesure::class, mappedBy'mesure')]
  32.     private $ficheQualiteCentMesures;
  33.     #[ORM\Column(type'boolean'nullabletrue)]
  34.     private int $symetrie 0;
  35.     #[ORM\OneToMany(targetEntityFicheReparation::class, mappedBy'mesure')]
  36.     private $ficheReparations;
  37.     #[ORM\OneToMany(targetEntityDerogation::class, mappedBy'mesure')]
  38.     private $derogations;
  39.     #[ORM\OneToMany(targetEntityDerogationSynthese::class, mappedBy'mesure')]
  40.     private $derogationSyntheses;
  41.     public function __construct()
  42.     {
  43.         $this->tableauMesureEnCours = new ArrayCollection();
  44.         $this->tableauMesureTermine = new ArrayCollection();
  45.         $this->ficheControlePreserieMesures = new ArrayCollection();
  46.         $this->ficheQualiteMesures = new ArrayCollection();
  47.         $this->ficheQualiteAtelierAuditeurMesures = new ArrayCollection();
  48.         $this->ficheQualiteAtelierMesures = new ArrayCollection();
  49.         $this->ficheQualiteCentMesures = new ArrayCollection();
  50.         $this->ficheReparations = new ArrayCollection();
  51.         $this->derogations = new ArrayCollection();
  52.         $this->derogationSyntheses = new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getName(): ?string
  59.     {
  60.         return $this->name;
  61.     }
  62.     public function setName(?string $name): self
  63.     {
  64.         $this->name $name;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return Collection|TableauMesureTermine[]
  69.      */
  70.     public function getTableauMesureTermines(): Collection
  71.     {
  72.         return $this->tableauMesureTermine;
  73.     }
  74.     public function addTableauMesureTermine(TableauMesureTermine $tableauMesureMesure): self
  75.     {
  76.         if (!$this->tableauMesureTermine->contains($tableauMesureMesure)) {
  77.             $this->tableauMesureTermine[] = $tableauMesureMesure;
  78.             $tableauMesureMesure->setMesure($this);
  79.         }
  80.         return $this;
  81.     }
  82.     public function removeTableauMesureTermine(TableauMesureTermine $tableauMesureMesure): self
  83.     {
  84.         if ($this->tableauMesureTermine->removeElement($tableauMesureMesure)) {
  85.             // set the owning side to null (unless already changed)
  86.             if ($tableauMesureMesure->getMesure() === $this) {
  87.                 $tableauMesureMesure->setMesure(null);
  88.             }
  89.         }
  90.         return $this;
  91.     }
  92.     public function __toString(): string
  93.     {
  94.         return (string) $this->name;
  95.     }
  96.     /**
  97.      * @return Collection|FicheControlePreserieMesure[]
  98.      */
  99.     public function getFicheControlePreserieMesures(): Collection
  100.     {
  101.         return $this->ficheControlePreserieMesures;
  102.     }
  103.     public function addFicheControlePreserieMesure(FicheControlePreserieMesure $ficheControlePreserieMesure): self
  104.     {
  105.         if (!$this->ficheControlePreserieMesures->contains($ficheControlePreserieMesure)) {
  106.             $this->ficheControlePreserieMesures[] = $ficheControlePreserieMesure;
  107.             $ficheControlePreserieMesure->setMesure($this);
  108.         }
  109.         return $this;
  110.     }
  111.     public function removeFicheControlePreserieMesure(FicheControlePreserieMesure $ficheControlePreserieMesure): self
  112.     {
  113.         if ($this->ficheControlePreserieMesures->removeElement($ficheControlePreserieMesure)) {
  114.             // set the owning side to null (unless already changed)
  115.             if ($ficheControlePreserieMesure->getMesure() === $this) {
  116.                 $ficheControlePreserieMesure->setMesure(null);
  117.             }
  118.         }
  119.         return $this;
  120.     }
  121.     public function getNameEn(): ?string
  122.     {
  123.         return $this->name_en;
  124.     }
  125.     public function setNameEn(?string $name_en): self
  126.     {
  127.         $this->name_en $name_en;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return Collection|FicheQualiteMesure[]
  132.      */
  133.     public function getFicheQualiteMesures(): Collection
  134.     {
  135.         return $this->ficheQualiteMesures;
  136.     }
  137.     public function addFicheQualiteMesure(FicheQualiteMesure $ficheQualiteMesure): self
  138.     {
  139.         if (!$this->ficheQualiteMesures->contains($ficheQualiteMesure)) {
  140.             $this->ficheQualiteMesures[] = $ficheQualiteMesure;
  141.             $ficheQualiteMesure->setMesure($this);
  142.         }
  143.         return $this;
  144.     }
  145.     public function removeFicheQualiteMesure(FicheQualiteMesure $ficheQualiteMesure): self
  146.     {
  147.         if ($this->ficheQualiteMesures->removeElement($ficheQualiteMesure)) {
  148.             // set the owning side to null (unless already changed)
  149.             if ($ficheQualiteMesure->getMesure() === $this) {
  150.                 $ficheQualiteMesure->setMesure(null);
  151.             }
  152.         }
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return Collection|FicheQualiteAtelierAuditeurMesure[]
  157.      */
  158.     public function getFicheQualiteAtelierAuditeurMesures(): Collection
  159.     {
  160.         return $this->ficheQualiteAtelierAuditeurMesures;
  161.     }
  162.     public function addFicheQualiteAtelierAuditeurMesure(FicheQualiteAtelierAuditeurMesure $ficheQualiteAtelierAuditeurMesure): self
  163.     {
  164.         if (!$this->ficheQualiteAtelierAuditeurMesures->contains($ficheQualiteAtelierAuditeurMesure)) {
  165.             $this->ficheQualiteAtelierAuditeurMesures[] = $ficheQualiteAtelierAuditeurMesure;
  166.             $ficheQualiteAtelierAuditeurMesure->setMesure($this);
  167.         }
  168.         return $this;
  169.     }
  170.     public function removeFicheQualiteAtelierAuditeurMesure(FicheQualiteAtelierAuditeurMesure $ficheQualiteAtelierAuditeurMesure): self
  171.     {
  172.         if ($this->ficheQualiteAtelierAuditeurMesures->removeElement($ficheQualiteAtelierAuditeurMesure)) {
  173.             // set the owning side to null (unless already changed)
  174.             if ($ficheQualiteAtelierAuditeurMesure->getMesure() === $this) {
  175.                 $ficheQualiteAtelierAuditeurMesure->setMesure(null);
  176.             }
  177.         }
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return Collection|FicheQualiteAtelierMesure[]
  182.      */
  183.     public function getFicheQualiteAtelierMesures(): Collection
  184.     {
  185.         return $this->ficheQualiteAtelierMesures;
  186.     }
  187.     public function addFicheQualiteAtelierMesure(FicheQualiteAtelierMesure $ficheQualiteAtelierMesure): self
  188.     {
  189.         if (!$this->ficheQualiteAtelierMesures->contains($ficheQualiteAtelierMesure)) {
  190.             $this->ficheQualiteAtelierMesures[] = $ficheQualiteAtelierMesure;
  191.             $ficheQualiteAtelierMesure->setMesure($this);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeFicheQualiteAtelierMesure(FicheQualiteAtelierMesure $ficheQualiteAtelierMesure): self
  196.     {
  197.         if ($this->ficheQualiteAtelierMesures->removeElement($ficheQualiteAtelierMesure)) {
  198.             // set the owning side to null (unless already changed)
  199.             if ($ficheQualiteAtelierMesure->getMesure() === $this) {
  200.                 $ficheQualiteAtelierMesure->setMesure(null);
  201.             }
  202.         }
  203.         return $this;
  204.     }
  205.     /**
  206.      * @return Collection|FicheQualiteCentMesure[]
  207.      */
  208.     public function getFicheQualiteCentMesures(): Collection
  209.     {
  210.         return $this->ficheQualiteCentMesures;
  211.     }
  212.     public function addFicheQualiteCentMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
  213.     {
  214.         if (!$this->ficheQualiteCentMesures->contains($ficheQualiteCentMesure)) {
  215.             $this->ficheQualiteCentMesures[] = $ficheQualiteCentMesure;
  216.             $ficheQualiteCentMesure->setMesure($this);
  217.         }
  218.         return $this;
  219.     }
  220.     public function removeFicheQualiteCentMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
  221.     {
  222.         if ($this->ficheQualiteCentMesures->removeElement($ficheQualiteCentMesure)) {
  223.             // set the owning side to null (unless already changed)
  224.             if ($ficheQualiteCentMesure->getMesure() === $this) {
  225.                 $ficheQualiteCentMesure->setMesure(null);
  226.             }
  227.         }
  228.         return $this;
  229.     }
  230.     public function getSymetrie(): ?bool
  231.     {
  232.         return $this->symetrie;
  233.     }
  234.     public function setSymetrie(?bool $symetrie): self
  235.     {
  236.         $this->symetrie $symetrie;
  237.         return $this;
  238.     }
  239.     /**
  240.      * @return Collection|TableauMesureEnCours[]
  241.      */
  242.     public function getTableauMesureEnCourss(): Collection
  243.     {
  244.         return $this->tableauMesureEnCours;
  245.     }
  246.     public function addTableauMesureEnCours(TableauMesureEnCours $tableauMesureMesure): self
  247.     {
  248.         if (!$this->tableauMesureEnCours->contains($tableauMesureMesure)) {
  249.             $this->tableauMesureEnCours[] = $tableauMesureMesure;
  250.             $tableauMesureMesure->setMesure($this);
  251.         }
  252.         return $this;
  253.     }
  254.     public function removeTableauMesureEnCours(TableauMesureEnCours $tableauMesureMesure): self
  255.     {
  256.         if ($this->tableauMesureEnCours->removeElement($tableauMesureMesure)) {
  257.             // set the owning side to null (unless already changed)
  258.             if ($tableauMesureMesure->getMesure() === $this) {
  259.                 $tableauMesureMesure->setMesure(null);
  260.             }
  261.         }
  262.         return $this;
  263.     }
  264.     /**
  265.      * @return Collection<int, FicheReparation>
  266.      */
  267.     public function getFicheReparations(): Collection
  268.     {
  269.         return $this->ficheReparations;
  270.     }
  271.     public function addFicheReparation(FicheReparation $ficheReparation): self
  272.     {
  273.         if (!$this->ficheReparations->contains($ficheReparation)) {
  274.             $this->ficheReparations[] = $ficheReparation;
  275.             $ficheReparation->setMesure($this);
  276.         }
  277.         return $this;
  278.     }
  279.     public function removeFicheReparation(FicheReparation $ficheReparation): self
  280.     {
  281.         if ($this->ficheReparations->removeElement($ficheReparation)) {
  282.             // set the owning side to null (unless already changed)
  283.             if ($ficheReparation->getMesure() === $this) {
  284.                 $ficheReparation->setMesure(null);
  285.             }
  286.         }
  287.         return $this;
  288.     }
  289.     /**
  290.      * @return Collection<int, Derogation>
  291.      */
  292.     public function getDerogations(): Collection
  293.     {
  294.         return $this->derogations;
  295.     }
  296.     public function addDerogation(Derogation $derogation): self
  297.     {
  298.         if (!$this->derogations->contains($derogation)) {
  299.             $this->derogations[] = $derogation;
  300.             $derogation->setMesure($this);
  301.         }
  302.         return $this;
  303.     }
  304.     public function removeDerogation(Derogation $derogation): self
  305.     {
  306.         if ($this->derogations->removeElement($derogation)) {
  307.             // set the owning side to null (unless already changed)
  308.             if ($derogation->getMesure() === $this) {
  309.                 $derogation->setMesure(null);
  310.             }
  311.         }
  312.         return $this;
  313.     }
  314.     /**
  315.      * @return Collection<int, DerogationSynthese>
  316.      */
  317.     public function getDerogationSyntheses(): Collection
  318.     {
  319.         return $this->derogationSyntheses;
  320.     }
  321.     public function addDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  322.     {
  323.         if (!$this->derogationSyntheses->contains($derogationSynthesis)) {
  324.             $this->derogationSyntheses[] = $derogationSynthesis;
  325.             $derogationSynthesis->setMesure($this);
  326.         }
  327.         return $this;
  328.     }
  329.     public function removeDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
  330.     {
  331.         if ($this->derogationSyntheses->removeElement($derogationSynthesis)) {
  332.             // set the owning side to null (unless already changed)
  333.             if ($derogationSynthesis->getMesure() === $this) {
  334.                 $derogationSynthesis->setMesure(null);
  335.             }
  336.         }
  337.         return $this;
  338.     }
  339. }