buildings = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getZeroLatitude(): ?float { return $this->zeroLatitude; } public function setZeroLatitude(float $zeroLatitude): self { $this->zeroLatitude = $zeroLatitude; return $this; } public function getZeroLongitude(): ?float { return $this->zeroLongitude; } public function setZeroLongitude(float $zeroLongitude): self { $this->zeroLongitude = $zeroLongitude; return $this; } /** * @return Collection */ public function getBuildings(): Collection { return $this->buildings; } public function addBuilding(Building $building): self { if (!$this->buildings->contains($building)) { $this->buildings[] = $building; $building->setSite($this); } return $this; } public function removeBuilding(Building $building): self { if ($this->buildings->removeElement($building)) { // set the owning side to null (unless already changed) if ($building->getSite() === $this) { $building->setSite(null); } } return $this; } }