polysurfaceComponent = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection */ public function getPolysurfaceComponent(): Collection { return $this->polysurfaceComponent; } public function addPolysurfaceComponent(PlaneSurface $polysurfaceComponent): self { if (!$this->polysurfaceComponent->contains($polysurfaceComponent)) { $this->polysurfaceComponent[] = $polysurfaceComponent; $polysurfaceComponent->setPolySurface($this); } return $this; } public function removePolysurfaceComponent(PlaneSurface $polysurfaceComponent): self { if ($this->polysurfaceComponent->removeElement($polysurfaceComponent)) { // set the owning side to null (unless already changed) if ($polysurfaceComponent->getPolySurface() === $this) { $polysurfaceComponent->setPolySurface(null); } } return $this; } public function getPlace(): ?Place { return $this->place; } public function setPlace(?Place $place): self { $this->place = $place; return $this; } }