formForgeMappingEvents = new ArrayCollection(); } /** * @return string|null */ public function getRedirectURL(): ?string { return $this->redirectURL; } /** * @param string|null $redirectURL * @return FormForgeReason */ public function setRedirectURL(?string $redirectURL): ?self { $this->redirectURL = $redirectURL; return $this; } /** * @return Collection|FormForgeMappingEvent[] */ public function getFormForgeMappingEvents(): Collection { return $this->formForgeMappingEvents; } public function addFormForgeMappingEvent(FormForgeMappingEvent $formForgeMappingEvent): self { if (!$this->formForgeMappingEvents->contains($formForgeMappingEvent)) { $this->formForgeMappingEvents[] = $formForgeMappingEvent; $formForgeMappingEvent->addFormForgeReason($this); } return $this; } public function removeFormForgeMappingEvent(FormForgeMappingEvent $formForgeMappingEvent): self { if ($this->formForgeMappingEvents->contains($formForgeMappingEvent)) { $this->formForgeMappingEvents->removeElement($formForgeMappingEvent); $formForgeMappingEvent->removeFormForgeReason($this); } return $this; } }