<?phpnamespace App\Entity;use App\Repository\StatutQualiteAtelierRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: StatutQualiteAtelierRepository::class)]class StatutQualiteAtelier implements \Stringable{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $name; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $name_en; #[ORM\OneToMany(targetEntity: FicheQualite::class, mappedBy: 'statut_atelier')] private $ficheQualites; #[ORM\OneToMany(targetEntity: FicheQualiteSynthese::class, mappedBy: 'statut_atelier')] private $ficheQualiteSyntheses; public function __construct() { $this->ficheQualites = new ArrayCollection(); $this->ficheQualiteSyntheses = 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; } public function getNameEn(): ?string { return $this->name_en; } public function setNameEn(?string $name_en): self { $this->name_en = $name_en; 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->setStatutAtelier($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->getStatutAtelier() === $this) { $ficheQualite->setStatutAtelier(null); } } return $this; } public function __toString(): string { return (string) $this->name; } /** * @return Collection|FicheQualiteSynthese[] */ public function getFicheQualiteSyntheses(): Collection { return $this->ficheQualiteSyntheses; } public function addFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self { if (!$this->ficheQualiteSyntheses->contains($ficheQualiteSynthesis)) { $this->ficheQualiteSyntheses[] = $ficheQualiteSynthesis; $ficheQualiteSynthesis->setStatutAtelier($this); } return $this; } public function removeFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self { if ($this->ficheQualiteSyntheses->removeElement($ficheQualiteSynthesis)) { // set the owning side to null (unless already changed) if ($ficheQualiteSynthesis->getStatutAtelier() === $this) { $ficheQualiteSynthesis->setStatutAtelier(null); } } return $this; }}