<?php
namespace App\Entity;
use App\Repository\TableauMesureLibelleRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TableauMesureLibelleRepository::class)]
class TableauMesureLibelle implements \Stringable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\OneToMany(targetEntity: TableauMesureTermine::class, mappedBy: 'mesure')]
private $tableauMesureTermine;
#[ORM\OneToMany(targetEntity: TableauMesureEnCours::class, mappedBy: 'mesure')]
private $tableauMesureEnCours;
#[ORM\OneToMany(targetEntity: FicheControlePreserieMesure::class, mappedBy: 'mesure')]
private $ficheControlePreserieMesures;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name_en;
#[ORM\OneToMany(targetEntity: FicheQualiteMesure::class, mappedBy: 'mesure')]
private $ficheQualiteMesures;
#[ORM\OneToMany(targetEntity: FicheQualiteAtelierAuditeurMesure::class, mappedBy: 'mesure')]
private $ficheQualiteAtelierAuditeurMesures;
#[ORM\OneToMany(targetEntity: FicheQualiteAtelierMesure::class, mappedBy: 'mesure')]
private $ficheQualiteAtelierMesures;
#[ORM\OneToMany(targetEntity: FicheQualiteCentMesure::class, mappedBy: 'mesure')]
private $ficheQualiteCentMesures;
#[ORM\Column(type: 'boolean', nullable: true)]
private int $symetrie = 0;
#[ORM\OneToMany(targetEntity: FicheReparation::class, mappedBy: 'mesure')]
private $ficheReparations;
#[ORM\OneToMany(targetEntity: Derogation::class, mappedBy: 'mesure')]
private $derogations;
#[ORM\OneToMany(targetEntity: DerogationSynthese::class, mappedBy: 'mesure')]
private $derogationSyntheses;
public function __construct()
{
$this->tableauMesureEnCours = new ArrayCollection();
$this->tableauMesureTermine = new ArrayCollection();
$this->ficheControlePreserieMesures = new ArrayCollection();
$this->ficheQualiteMesures = new ArrayCollection();
$this->ficheQualiteAtelierAuditeurMesures = new ArrayCollection();
$this->ficheQualiteAtelierMesures = new ArrayCollection();
$this->ficheQualiteCentMesures = new ArrayCollection();
$this->ficheReparations = new ArrayCollection();
$this->derogations = new ArrayCollection();
$this->derogationSyntheses = 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|TableauMesureTermine[]
*/
public function getTableauMesureTermines(): Collection
{
return $this->tableauMesureTermine;
}
public function addTableauMesureTermine(TableauMesureTermine $tableauMesureMesure): self
{
if (!$this->tableauMesureTermine->contains($tableauMesureMesure)) {
$this->tableauMesureTermine[] = $tableauMesureMesure;
$tableauMesureMesure->setMesure($this);
}
return $this;
}
public function removeTableauMesureTermine(TableauMesureTermine $tableauMesureMesure): self
{
if ($this->tableauMesureTermine->removeElement($tableauMesureMesure)) {
// set the owning side to null (unless already changed)
if ($tableauMesureMesure->getMesure() === $this) {
$tableauMesureMesure->setMesure(null);
}
}
return $this;
}
public function __toString(): string
{
return (string) $this->name;
}
/**
* @return Collection|FicheControlePreserieMesure[]
*/
public function getFicheControlePreserieMesures(): Collection
{
return $this->ficheControlePreserieMesures;
}
public function addFicheControlePreserieMesure(FicheControlePreserieMesure $ficheControlePreserieMesure): self
{
if (!$this->ficheControlePreserieMesures->contains($ficheControlePreserieMesure)) {
$this->ficheControlePreserieMesures[] = $ficheControlePreserieMesure;
$ficheControlePreserieMesure->setMesure($this);
}
return $this;
}
public function removeFicheControlePreserieMesure(FicheControlePreserieMesure $ficheControlePreserieMesure): self
{
if ($this->ficheControlePreserieMesures->removeElement($ficheControlePreserieMesure)) {
// set the owning side to null (unless already changed)
if ($ficheControlePreserieMesure->getMesure() === $this) {
$ficheControlePreserieMesure->setMesure(null);
}
}
return $this;
}
public function getNameEn(): ?string
{
return $this->name_en;
}
public function setNameEn(?string $name_en): self
{
$this->name_en = $name_en;
return $this;
}
/**
* @return Collection|FicheQualiteMesure[]
*/
public function getFicheQualiteMesures(): Collection
{
return $this->ficheQualiteMesures;
}
public function addFicheQualiteMesure(FicheQualiteMesure $ficheQualiteMesure): self
{
if (!$this->ficheQualiteMesures->contains($ficheQualiteMesure)) {
$this->ficheQualiteMesures[] = $ficheQualiteMesure;
$ficheQualiteMesure->setMesure($this);
}
return $this;
}
public function removeFicheQualiteMesure(FicheQualiteMesure $ficheQualiteMesure): self
{
if ($this->ficheQualiteMesures->removeElement($ficheQualiteMesure)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteMesure->getMesure() === $this) {
$ficheQualiteMesure->setMesure(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteAtelierAuditeurMesure[]
*/
public function getFicheQualiteAtelierAuditeurMesures(): Collection
{
return $this->ficheQualiteAtelierAuditeurMesures;
}
public function addFicheQualiteAtelierAuditeurMesure(FicheQualiteAtelierAuditeurMesure $ficheQualiteAtelierAuditeurMesure): self
{
if (!$this->ficheQualiteAtelierAuditeurMesures->contains($ficheQualiteAtelierAuditeurMesure)) {
$this->ficheQualiteAtelierAuditeurMesures[] = $ficheQualiteAtelierAuditeurMesure;
$ficheQualiteAtelierAuditeurMesure->setMesure($this);
}
return $this;
}
public function removeFicheQualiteAtelierAuditeurMesure(FicheQualiteAtelierAuditeurMesure $ficheQualiteAtelierAuditeurMesure): self
{
if ($this->ficheQualiteAtelierAuditeurMesures->removeElement($ficheQualiteAtelierAuditeurMesure)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteAtelierAuditeurMesure->getMesure() === $this) {
$ficheQualiteAtelierAuditeurMesure->setMesure(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteAtelierMesure[]
*/
public function getFicheQualiteAtelierMesures(): Collection
{
return $this->ficheQualiteAtelierMesures;
}
public function addFicheQualiteAtelierMesure(FicheQualiteAtelierMesure $ficheQualiteAtelierMesure): self
{
if (!$this->ficheQualiteAtelierMesures->contains($ficheQualiteAtelierMesure)) {
$this->ficheQualiteAtelierMesures[] = $ficheQualiteAtelierMesure;
$ficheQualiteAtelierMesure->setMesure($this);
}
return $this;
}
public function removeFicheQualiteAtelierMesure(FicheQualiteAtelierMesure $ficheQualiteAtelierMesure): self
{
if ($this->ficheQualiteAtelierMesures->removeElement($ficheQualiteAtelierMesure)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteAtelierMesure->getMesure() === $this) {
$ficheQualiteAtelierMesure->setMesure(null);
}
}
return $this;
}
/**
* @return Collection|FicheQualiteCentMesure[]
*/
public function getFicheQualiteCentMesures(): Collection
{
return $this->ficheQualiteCentMesures;
}
public function addFicheQualiteCentMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
{
if (!$this->ficheQualiteCentMesures->contains($ficheQualiteCentMesure)) {
$this->ficheQualiteCentMesures[] = $ficheQualiteCentMesure;
$ficheQualiteCentMesure->setMesure($this);
}
return $this;
}
public function removeFicheQualiteCentMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
{
if ($this->ficheQualiteCentMesures->removeElement($ficheQualiteCentMesure)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteCentMesure->getMesure() === $this) {
$ficheQualiteCentMesure->setMesure(null);
}
}
return $this;
}
public function getSymetrie(): ?bool
{
return $this->symetrie;
}
public function setSymetrie(?bool $symetrie): self
{
$this->symetrie = $symetrie;
return $this;
}
/**
* @return Collection|TableauMesureEnCours[]
*/
public function getTableauMesureEnCourss(): Collection
{
return $this->tableauMesureEnCours;
}
public function addTableauMesureEnCours(TableauMesureEnCours $tableauMesureMesure): self
{
if (!$this->tableauMesureEnCours->contains($tableauMesureMesure)) {
$this->tableauMesureEnCours[] = $tableauMesureMesure;
$tableauMesureMesure->setMesure($this);
}
return $this;
}
public function removeTableauMesureEnCours(TableauMesureEnCours $tableauMesureMesure): self
{
if ($this->tableauMesureEnCours->removeElement($tableauMesureMesure)) {
// set the owning side to null (unless already changed)
if ($tableauMesureMesure->getMesure() === $this) {
$tableauMesureMesure->setMesure(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->setMesure($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->getMesure() === $this) {
$ficheReparation->setMesure(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->setMesure($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->getMesure() === $this) {
$derogation->setMesure(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->setMesure($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->getMesure() === $this) {
$derogationSynthesis->setMesure(null);
}
}
return $this;
}
}