<?phpnamespace App\Entity;use App\Repository\EnqueteEntrepriseSectionChildRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=EnqueteEntrepriseSectionChildRepository::class) */class EnqueteEntrepriseSectionChild{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text") */ private $libelle; /** * @ORM\Column(type="integer") */ private $position; /** * @ORM\ManyToOne(targetEntity=EnqueteEntrepriseSection::class, inversedBy="enqueteEntrepriseSectionChildren") * @ORM\JoinColumn(nullable=false) */ private $enqueteEntrepriseSection; /** * @ORM\OneToMany(targetEntity=EnqueteEntrepriseSectionChildValue::class, mappedBy="enqueteEntrepriseSectionChild") */ private $enqueteEntrepriseSectionChildValues; public function __construct() { $this->enqueteEntrepriseSectionChildValues = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(string $libelle): self { $this->libelle = $libelle; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition(int $value): self { $this->position = $value; return $this; } public function getEnqueteEntrepriseSection(): ?EnqueteEntrepriseSection { return $this->enqueteEntrepriseSection; } public function setEnqueteEntrepriseSection(?EnqueteEntrepriseSection $enqueteEntrepriseSection): self { $this->enqueteEntrepriseSection = $enqueteEntrepriseSection; return $this; } /** * @return Collection<int, EnqueteEntrepriseSectionChildValue> */ public function getEnqueteEntrepriseSectionChildValues(): Collection { return $this->enqueteEntrepriseSectionChildValues; } public function addEnqueteEntrepriseSectionChildValue(EnqueteEntrepriseSectionChildValue $enqueteEntrepriseSectionChildValue): self { if (!$this->enqueteEntrepriseSectionChildValues->contains($enqueteEntrepriseSectionChildValue)) { $this->enqueteEntrepriseSectionChildValues[] = $enqueteEntrepriseSectionChildValue; $enqueteEntrepriseSectionChildValue->setEnqueteEntrepriseSectionChild($this); } return $this; } public function removeEnqueteEntrepriseSectionChildValue(EnqueteEntrepriseSectionChildValue $enqueteEntrepriseSectionChildValue): self { if ($this->enqueteEntrepriseSectionChildValues->removeElement($enqueteEntrepriseSectionChildValue)) { // set the owning side to null (unless already changed) if ($enqueteEntrepriseSectionChildValue->getEnqueteEntrepriseSectionChild() === $this) { $enqueteEntrepriseSectionChildValue->setEnqueteEntrepriseSectionChild(null); } } return $this; }}