tags = new ArrayCollection(); parent::__construct(); } public function getDiscr(): ?string { return $this->discr; } public function setDiscr(string $discr): self { $this->discr = $discr; return $this; } public function getEquipment(): ?Equipment { return $this->equipment; } public function setEquipment(?Equipment $equipment): self { $this->equipment = $equipment; return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; } return $this; } public function removeTag(Tagg $tag): self { $this->tags->removeElement($tag); return $this; } }