id; } public function setId(int $id): static { $this->id = $id; return $this; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): static { $this->label = $label; return $this; } public function getMission(): ?Mission { return $this->mission; } public function setMission(?Mission $mission): void { $this->mission = $mission; } public function getMissionCategorie(): Collection { return $this->missionCategories; } public function addMissionCategory(MissionCategory $missionCategory): static { if(!$this->missionCategories->contains($missionCategory)) { $this->missionCategories->add($missionCategory); $missionCategory->setCategory($this); } return $this; } public function removeMissionCategory(MissionCategory $missionCategory): static { if($this->missionCategories->removeElement($missionCategory)) { if($missionCategory->getCategory() === $this) { $missionCategory->setCategory(null); } } return $this; } }