<?phpnamespace App\Domain\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;class AsociacionEmpresarial extends ConsortiumLaboral{ private Collection $hijos; private Collection $documentacionAsociacionEmpresarials; private ?self $padre = null; private Collection $sectors; private Collection $sectores; public function __construct() { $this->hijos = new ArrayCollection(); $this->documentacionAsociacionEmpresarials = new ArrayCollection(); $this->sectores = new ArrayCollection(); } /** * @return Collection<int, AsociacionEmpresarial> */ public function getHijos(): Collection { return $this->hijos; } public function addHijo(AsociacionEmpresarial $hijo): static { if (!$this->hijos->contains($hijo)) { $this->hijos->add($hijo); $hijo->setPadre($this); } return $this; } public function removeHijo(AsociacionEmpresarial $hijo): static { if ($this->hijos->removeElement($hijo)) { // set the owning side to null (unless already changed) if ($hijo->getPadre() === $this) { $hijo->setPadre(null); } } return $this; } /** * @return Collection<int, DocumentacionAsociacionEmpresarial> */ public function getDocumentacionAsociacionEmpresarials(): Collection { return $this->documentacionAsociacionEmpresarials; } public function addDocumentacionAsociacionEmpresarial(DocumentacionAsociacionEmpresarial $documentacionAsociacionEmpresarial): static { if (!$this->documentacionAsociacionEmpresarials->contains($documentacionAsociacionEmpresarial)) { $this->documentacionAsociacionEmpresarials->add($documentacionAsociacionEmpresarial); $documentacionAsociacionEmpresarial->setAsociacionEmpresarial($this); } return $this; } public function removeDocumentacionAsociacionEmpresarial(DocumentacionAsociacionEmpresarial $documentacionAsociacionEmpresarial): static { if ($this->documentacionAsociacionEmpresarials->removeElement($documentacionAsociacionEmpresarial)) { // set the owning side to null (unless already changed) if ($documentacionAsociacionEmpresarial->getAsociacionEmpresarial() === $this) { $documentacionAsociacionEmpresarial->setAsociacionEmpresarial(null); } } return $this; } /** * @return Collection<int, SectorHasAsociacionEmpresarial> */ public function getSectores(): Collection { return $this->sectores; } public function addSectore(SectorHasAsociacionEmpresarial $sectore): static { if (!$this->sectores->contains($sectore)) { $this->sectores->add($sectore); $sectore->setAsociacionEmpresarial($this); } return $this; } public function removeSectore(SectorHasAsociacionEmpresarial $sectore): static { if ($this->sectores->removeElement($sectore)) { // set the owning side to null (unless already changed) if ($sectore->getAsociacionEmpresarial() === $this) { $sectore->setAsociacionEmpresarial(null); } } return $this; } public function getPadre(): ?self { return $this->padre; } public function setPadre(?self $padre): static { $this->padre = $padre; return $this; }}