<?php
namespace App\Entity;
use App\Repository\TailleRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TailleRepository::class)]
class Taille implements \Stringable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\ManyToMany(targetEntity: TableauMesure::class, mappedBy: 'tailles')]
private $tableauMesures;
#[ORM\OneToMany(targetEntity: TableauMesureTermineValeur::class, mappedBy: 'taille')]
private $tableauMesureTermineValeurs;
#[ORM\OneToMany(targetEntity: TableauMesureEnCoursValeur::class, mappedBy: 'taille')]
private $tableauMesureEnCoursValeurs;
#[ORM\OneToMany(targetEntity: FicheControlePreserie::class, mappedBy: 'taille')]
private $ficheControlePreseries;
#[ORM\OneToMany(targetEntity: DonneeReference::class, mappedBy: 'taille')]
private $donneeReferences;
#[ORM\OneToMany(targetEntity: FicheQualite::class, mappedBy: 'taille')]
private $ficheQualites;
#[ORM\OneToMany(targetEntity: FicheQualiteAtelierAuditeur::class, mappedBy: 'taille')]
private $ficheQualiteAtelierAuditeurs;
#[ORM\OneToMany(targetEntity: FicheQualiteAtelier::class, mappedBy: 'taille')]
private $ficheQualiteAteliers;
#[ORM\OneToMany(targetEntity: FicheQualiteCent::class, mappedBy: 'taille')]
private $ficheQualiteCents;
#[ORM\OneToMany(targetEntity: FicheReparation::class, mappedBy: 'taille')]
private $ficheReparations;
#[ORM\OneToMany(targetEntity: DerogationSynthese::class, mappedBy: 'taille')]
private $derogationSyntheses;
#[ORM\OneToMany(targetEntity: Derogation::class, mappedBy: 'taille')]
private $derogations;
#[ORM\OneToMany(targetEntity: Lancement::class, mappedBy: 'taille')]
private $lancements;
#[ORM\OneToMany(targetEntity: JdeCout::class, mappedBy: 'taille')]
private $jdeCouts;
public function __construct()
{
$this->tableauMesures = new ArrayCollection();
$this->tableauMesureTermineValeurs = new ArrayCollection();
$this->tableauMesureEnCoursValeurs = new ArrayCollection();
$this->ficheControlePreseries = new ArrayCollection();
$this->donneeReferences = new ArrayCollection();
$this->ficheQualites = new ArrayCollection();
$this->ficheQualiteAtelierAuditeurs = new ArrayCollection();
$this->ficheQualiteAteliers = new ArrayCollection();
$this->ficheQualiteCents = new ArrayCollection();
$this->ficheReparations = new ArrayCollection();
$this->derogationSyntheses = new ArrayCollection();
$this->derogations = new ArrayCollection();
$this->lancements = new ArrayCollection();
$this->jdeCouts = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
/**
* @return Collection|TableauMesure[]
*/
public function getTableauMesures(): Collection
{
return $this->tableauMesures;
}
public function addTableauMesure(TableauMesure $tableauMesure): self
{
if (!$this->tableauMesures->contains($tableauMesure)) {
$this->tableauMesures[] = $tableauMesure;
$tableauMesure->addTaille($this);
}
return $this;
}
public function removeTableauMesure(TableauMesure $tableauMesure): self
{
if ($this->tableauMesures->removeElement($tableauMesure)) {
$tableauMesure->removeTaille($this);
}
return $this;
}
/**
* @return Collection|TableauMesureTermineValeur[]
*/
public function getTableauMesureTermineValeurs(): Collection
{
return $this->tableauMesureTermineValeurs;
}
public function addTableauMesureTermineValeur(TableauMesureTermineValeur $tableauMesureValeurTaille): self
{
if (!$this->tableauMesureTermineValeurs->contains($tableauMesureValeurTaille)) {
$this->tableauMesureTermineValeurs[] = $tableauMesureValeurTaille;
$tableauMesureValeurTaille->setTaille($this);
}
return $this;
}
public function removeTableauMesureTermineValeur(TableauMesureTermineValeur $tableauMesureValeurTaille): self
{
if ($this->tableauMesureTermineValeurs->removeElement($tableauMesureValeurTaille)) {
// set the owning side to null (unless already changed)
if ($tableauMesureValeurTaille->getTaille() === $this) {
$tableauMesureValeurTaille->setTaille(null);
}
}
return $this;
}
public function __toString(): string
{
return (string) $this->name;
}
/**
* @return Collection|TableauMesureEnCoursValeur[]
*/
public function getTableauMesureEnCoursValeurs(): Collection
{
return $this->tableauMesureEnCoursValeurs;
}
public function addTableauMesureEnCoursValeur(TableauMesureEnCoursValeur $tableauMesureEnCoursValeur): self
{
if (!$this->tableauMesureEnCoursValeurs->contains($tableauMesureEnCoursValeur)) {
$this->tableauMesureEnCoursValeurs[] = $tableauMesureEnCoursValeur;
$tableauMesureEnCoursValeur->setTaille($this);
}
return $this;
}
public function removeTableauMesureEnCoursValeur(TableauMesureEnCoursValeur $tableauMesureEnCoursValeur): self
{
if ($this->tableauMesureEnCoursValeurs->removeElement($tableauMesureEnCoursValeur)) {
// set the owning side to null (unless already changed)
if ($tableauMesureEnCoursValeur->getTaille() === $this) {
$tableauMesureEnCoursValeur->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|FicheControlePreserie[]
*/
public function getFicheControlePreseries(): Collection
{
return $this->ficheControlePreseries;
}
public function addFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
{
if (!$this->ficheControlePreseries->contains($ficheControlePreseries)) {
$this->ficheControlePreseries[] = $ficheControlePreseries;
$ficheControlePreseries->setTaille($this);
}
return $this;
}
public function removeFicheControlePreseries(FicheControlePreserie $ficheControlePreseries): self
{
if ($this->ficheControlePreseries->removeElement($ficheControlePreseries)) {
// set the owning side to null (unless already changed)
if ($ficheControlePreseries->getTaille() === $this) {
$ficheControlePreseries->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|DonneeReference[]
*/
public function getDonneeReferences(): Collection
{
return $this->donneeReferences;
}
public function addDonneeReference(DonneeReference $donneeReference): self
{
if (!$this->donneeReferences->contains($donneeReference)) {
$this->donneeReferences[] = $donneeReference;
$donneeReference->setTaille($this);
}
return $this;
}
public function removeDonneeReference(DonneeReference $donneeReference): self
{
if ($this->donneeReferences->removeElement($donneeReference)) {
// set the owning side to null (unless already changed)
if ($donneeReference->getTaille() === $this) {
$donneeReference->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualite[]
*/
public function getFicheQualites(): Collection
{
return $this->ficheQualites;
}
public function addFicheQualite(FicheQualite $ficheQualite): self
{
if (!$this->ficheQualites->contains($ficheQualite)) {
$this->ficheQualites[] = $ficheQualite;
$ficheQualite->setTaille($this);
}
return $this;
}
public function removeFicheQualite(FicheQualite $ficheQualite): self
{
if ($this->ficheQualites->removeElement($ficheQualite)) {
// set the owning side to null (unless already changed)
if ($ficheQualite->getTaille() === $this) {
$ficheQualite->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteAtelierAuditeur[]
*/
public function getFicheQualiteAtelierAuditeurs(): Collection
{
return $this->ficheQualiteAtelierAuditeurs;
}
public function addFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
{
if (!$this->ficheQualiteAtelierAuditeurs->contains($ficheQualiteAtelierAuditeur)) {
$this->ficheQualiteAtelierAuditeurs[] = $ficheQualiteAtelierAuditeur;
$ficheQualiteAtelierAuditeur->setTaille($this);
}
return $this;
}
public function removeFicheQualiteAtelierAuditeur(FicheQualiteAtelierAuditeur $ficheQualiteAtelierAuditeur): self
{
if ($this->ficheQualiteAtelierAuditeurs->removeElement($ficheQualiteAtelierAuditeur)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteAtelierAuditeur->getTaille() === $this) {
$ficheQualiteAtelierAuditeur->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteAtelier[]
*/
public function getFicheQualiteAteliers(): Collection
{
return $this->ficheQualiteAteliers;
}
public function addFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
{
if (!$this->ficheQualiteAteliers->contains($ficheQualiteAtelier)) {
$this->ficheQualiteAteliers[] = $ficheQualiteAtelier;
$ficheQualiteAtelier->setTaille($this);
}
return $this;
}
public function removeFicheQualiteAtelier(FicheQualiteAtelier $ficheQualiteAtelier): self
{
if ($this->ficheQualiteAteliers->removeElement($ficheQualiteAtelier)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteAtelier->getTaille() === $this) {
$ficheQualiteAtelier->setTaille(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteCent[]
*/
public function getFicheQualiteCents(): Collection
{
return $this->ficheQualiteCents;
}
public function addFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
{
if (!$this->ficheQualiteCents->contains($ficheQualiteCent)) {
$this->ficheQualiteCents[] = $ficheQualiteCent;
$ficheQualiteCent->setTaille($this);
}
return $this;
}
public function removeFicheQualiteCent(FicheQualiteCent $ficheQualiteCent): self
{
if ($this->ficheQualiteCents->removeElement($ficheQualiteCent)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteCent->getTaille() === $this) {
$ficheQualiteCent->setTaille(null);
}
}
return $this;
}
/**
* @return Collection<int, FicheReparation>
*/
public function getFicheReparations(): Collection
{
return $this->ficheReparations;
}
public function addFicheReparation(FicheReparation $ficheReparation): self
{
if (!$this->ficheReparations->contains($ficheReparation)) {
$this->ficheReparations[] = $ficheReparation;
$ficheReparation->setTaille($this);
}
return $this;
}
public function removeFicheReparation(FicheReparation $ficheReparation): self
{
if ($this->ficheReparations->removeElement($ficheReparation)) {
// set the owning side to null (unless already changed)
if ($ficheReparation->getTaille() === $this) {
$ficheReparation->setTaille(null);
}
}
return $this;
}
/**
* @return Collection<int, DerogationSynthese>
*/
public function getDerogationSyntheses(): Collection
{
return $this->derogationSyntheses;
}
public function addDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
{
if (!$this->derogationSyntheses->contains($derogationSynthesis)) {
$this->derogationSyntheses[] = $derogationSynthesis;
$derogationSynthesis->setTaille($this);
}
return $this;
}
public function removeDerogationSynthesis(DerogationSynthese $derogationSynthesis): self
{
if ($this->derogationSyntheses->removeElement($derogationSynthesis)) {
// set the owning side to null (unless already changed)
if ($derogationSynthesis->getTaille() === $this) {
$derogationSynthesis->setTaille(null);
}
}
return $this;
}
/**
* @return Collection<int, Derogation>
*/
public function getDerogations(): Collection
{
return $this->derogations;
}
public function addDerogation(Derogation $derogation): self
{
if (!$this->derogations->contains($derogation)) {
$this->derogations[] = $derogation;
$derogation->setTaille($this);
}
return $this;
}
public function removeDerogation(Derogation $derogation): self
{
if ($this->derogations->removeElement($derogation)) {
// set the owning side to null (unless already changed)
if ($derogation->getTaille() === $this) {
$derogation->setTaille(null);
}
}
return $this;
}
/**
* @return Collection<int, Lancement>
*/
public function getLancements(): Collection
{
return $this->lancements;
}
public function addLancement(Lancement $lancement): self
{
if (!$this->lancements->contains($lancement)) {
$this->lancements[] = $lancement;
$lancement->setTaille($this);
}
return $this;
}
public function removeLancement(Lancement $lancement): self
{
if ($this->lancements->removeElement($lancement)) {
// set the owning side to null (unless already changed)
if ($lancement->getTaille() === $this) {
$lancement->setTaille(null);
}
}
return $this;
}
/**
* @return Collection<int, JdeCout>
*/
public function getJdeCouts(): Collection
{
return $this->jdeCouts;
}
public function addJdeCout(JdeCout $jdeCout): self
{
if (!$this->jdeCouts->contains($jdeCout)) {
$this->jdeCouts[] = $jdeCout;
$jdeCout->setTaille($this);
}
return $this;
}
public function removeJdeCout(JdeCout $jdeCout): self
{
if ($this->jdeCouts->removeElement($jdeCout)) {
// set the owning side to null (unless already changed)
if ($jdeCout->getTaille() === $this) {
$jdeCout->setTaille(null);
}
}
return $this;
}
}