tags = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getAccompanist(): Access { return $this->accompanist; } public function setAccompanist(Access $accompanist): self { $this->accompanist = $accompanist; return $this; } public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; $tag->addControl($this); } return $this; } public function removeTag(Tagg $tag): self { if ($this->tags->removeElement($tag)) { $tag->addControl($this); } return $this; } }