socialActions = new ArrayCollection(); $this->goals = new ArrayCollection(); $this->accompanyingPeriodWorks = new ArrayCollection(); $this->accompanyingPeriodWorkGoals = new ArrayCollection(); } public function addAccompanyingPeriodWork(AccompanyingPeriodWork $accompanyingPeriod): self { if (!$this->accompanyingPeriodWorks->contains($accompanyingPeriod)) { $this->accompanyingPeriodWorks[] = $accompanyingPeriod; } return $this; } public function addAccompanyingPeriodWorkGoal(AccompanyingPeriodWorkGoal $accompanyingPeriodWorkGoal): self { if (!$this->accompanyingPeriodWorkGoals->contains($accompanyingPeriodWorkGoal)) { $this->accompanyingPeriodWorkGoals[] = $accompanyingPeriodWorkGoal; } return $this; } public function addGoal(Goal $goal): self { if (!$this->goals->contains($goal)) { $this->goals[] = $goal; } return $this; } public function addSocialAction(SocialAction $socialAction): self { if (!$this->socialActions->contains($socialAction)) { $this->socialActions[] = $socialAction; } return $this; } /** * @return AccompanyingPeriodWorkGoal[]|Collection */ public function getAccompanyingPeriodWorkGoals(): Collection { return $this->accompanyingPeriodWorkGoals; } /** * @return AccompanyingPeriodWork[]|Collection */ public function getAccompanyingPeriodWorks(): Collection { return $this->accompanyingPeriodWorks; } public function getDesactivationDate(): ?DateTimeInterface { return $this->desactivationDate; } /** * @return Collection|Goal[] */ public function getGoals(): Collection { return $this->goals; } public function getId(): ?int { return $this->id; } /** * @return Collection|SocialAction[] */ public function getSocialActions(): Collection { return $this->socialActions; } public function getTitle(): array { return $this->title; } public function removeAccompanyingPeriodWork(AccompanyingPeriodWork $accompanyingPeriod): self { $this->accompanyingPeriodWorks->removeElement($accompanyingPeriod); return $this; } public function removeAccompanyingPeriodWorkGoal(AccompanyingPeriodWorkGoal $accompanyingPeriodWorkGoal): self { $this->accompanyingPeriodWorkGoals->removeElement($accompanyingPeriodWorkGoal); return $this; } public function removeGoal(Goal $goal): self { $this->goals->removeElement($goal); return $this; } public function removeSocialAction(SocialAction $socialAction): self { $this->socialActions->removeElement($socialAction); return $this; } public function setDesactivationDate(?DateTimeInterface $desactivationDate): self { $this->desactivationDate = $desactivationDate; return $this; } public function setTitle(array $title): self { $this->title = $title; return $this; } }