<?phpnamespace App\Domain\Entity;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;class Municipio{ private ?Uuid $id = null; private ?string $nombre = null; private ?string $nombreLocal = null; private ?string $cp = null; private ?array $geoPoint = null; private ?array $geoShape = null; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; private Collection $empresas; private Collection $localidades; private Collection $sedes; private Collection $consortiumLaborals; private Collection $comisionesParitarias; private ?Provincia $provincia = null; public function __construct() { $this->empresas = new ArrayCollection(); $this->localidades = new ArrayCollection(); $this->sedes = new ArrayCollection(); $this->consortiumLaborals = new ArrayCollection(); $this->comisionesParitarias = new ArrayCollection(); } public function __toString(): string { return $this->getNombre()??'Municipio Sin Definir'; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(?string $nombre): static { $this->nombre = $nombre; return $this; } public function getNombreLocal(): ?string { return $this->nombreLocal; } public function setNombreLocal(?string $nombreLocal): static { $this->nombreLocal = $nombreLocal; return $this; } public function getCp(): ?string { return $this->cp; } public function setCp(?string $cp): static { $this->cp = $cp; return $this; } public function getGeoPoint(): ?array { return $this->geoPoint; } public function setGeoPoint(?array $geoPoint): static { $this->geoPoint = $geoPoint; return $this; } public function getGeoShape(): ?array { return $this->geoShape; } public function setGeoShape(?array $geoShape): static { $this->geoShape = $geoShape; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } public function getId(): ?Uuid { return $this->id; } /** * @return Collection<int, Empresa> */ public function getEmpresas(): Collection { return $this->empresas; } public function addEmpresa(Empresa $empresa): static { if (!$this->empresas->contains($empresa)) { $this->empresas->add($empresa); $empresa->setMunicipio($this); } return $this; } public function removeEmpresa(Empresa $empresa): static { if ($this->empresas->removeElement($empresa)) { // set the owning side to null (unless already changed) if ($empresa->getMunicipio() === $this) { $empresa->setMunicipio(null); } } return $this; } /** * @return Collection<int, Localidad> */ public function getLocalidades(): Collection { return $this->localidades; } public function addLocalidade(Localidad $localidade): static { if (!$this->localidades->contains($localidade)) { $this->localidades->add($localidade); $localidade->setMunicipio($this); } return $this; } public function removeLocalidade(Localidad $localidade): static { if ($this->localidades->removeElement($localidade)) { // set the owning side to null (unless already changed) if ($localidade->getMunicipio() === $this) { $localidade->setMunicipio(null); } } return $this; } /** * @return Collection<int, Sede> */ public function getSedes(): Collection { return $this->sedes; } public function addSede(Sede $sede): static { if (!$this->sedes->contains($sede)) { $this->sedes->add($sede); $sede->setMunicipio($this); } return $this; } public function removeSede(Sede $sede): static { if ($this->sedes->removeElement($sede)) { // set the owning side to null (unless already changed) if ($sede->getMunicipio() === $this) { $sede->setMunicipio(null); } } return $this; } /** * @return Collection<int, ConsortiumLaboral> */ public function getConsortiumLaborals(): Collection { return $this->consortiumLaborals; } public function addConsortiumLaboral(ConsortiumLaboral $consortiumLaboral): static { if (!$this->consortiumLaborals->contains($consortiumLaboral)) { $this->consortiumLaborals->add($consortiumLaboral); $consortiumLaboral->setMunicipio($this); } return $this; } public function removeConsortiumLaboral(ConsortiumLaboral $consortiumLaboral): static { if ($this->consortiumLaborals->removeElement($consortiumLaboral)) { // set the owning side to null (unless already changed) if ($consortiumLaboral->getMunicipio() === $this) { $consortiumLaboral->setMunicipio(null); } } return $this; } /** * @return Collection<int, ComisionParitaria> */ public function getComisionesParitarias(): Collection { return $this->comisionesParitarias; } public function addComisionesParitaria(ComisionParitaria $comisionesParitaria): static { if (!$this->comisionesParitarias->contains($comisionesParitaria)) { $this->comisionesParitarias->add($comisionesParitaria); $comisionesParitaria->setMunicipio($this); } return $this; } public function removeComisionesParitaria(ComisionParitaria $comisionesParitaria): static { if ($this->comisionesParitarias->removeElement($comisionesParitaria)) { // set the owning side to null (unless already changed) if ($comisionesParitaria->getMunicipio() === $this) { $comisionesParitaria->setMunicipio(null); } } return $this; } public function getProvincia(): ?Provincia { return $this->provincia; } public function setProvincia(?Provincia $provincia): static { $this->provincia = $provincia; return $this; }}