requests = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(string $slug): self { $this->slug = $slug; return $this; } /** * @return Collection|Request[] */ public function getRequests(): Collection { return $this->requests; } public function addRequest(Request $request): self { if (!$this->requests->contains($request)) { $this->requests[] = $request; $request->setStatus($this); } return $this; } public function removeRequest(Request $request): self { if ($this->requests->contains($request)) { $this->requests->removeElement($request); // set the owning side to null (unless already changed) if ($request->getStatus() === $this) { $request->setStatus(null); } } return $this; } }