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