workshops = new ArrayCollection(); } public function __toString() { return $this->getTitle(); } /** * @return Collection|WorkshopInterface[] */ public function getWorkshops(): Collection { return $this->workshops; } public function addWorkshop(WorkshopInterface $workshop): self { if (!$this->workshops->contains($workshop)) { $this->workshops[] = $workshop; } return $this; } public function removeWorkshop(WorkshopInterface $workshop): self { if ($this->workshops->contains($workshop)) { $this->workshops->removeElement($workshop); } return $this; } public function getImage(): ?FileInterface { return $this->image; } public function setImage(?FileInterface $image): self { $this->image = $image; return $this; } }