formForgeReasons = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return trim($this->name); } public function setName(string $name): self { $this->name = trim($name); return $this; } /** * @return Collection|FormForgeReason[] */ public function getFormForgeReasons(): Collection { return $this->formForgeReasons; } public function addFormForgeReason(FormForgeReason $formForgeReason): self { if (!$this->formForgeReasons->contains($formForgeReason)) { $this->formForgeReasons[] = $formForgeReason; } return $this; } public function removeFormForgeReason(FormForgeReason $formForgeReason): self { if ($this->formForgeReasons->contains($formForgeReason)) { $this->formForgeReasons->removeElement($formForgeReason); } return $this; } }