socialActions = new ArrayCollection(); $this->results = new ArrayCollection(); } public function addResult(Result $result): self { if (!$this->results->contains($result)) { $this->results[] = $result; } return $this; } public function addSocialAction(SocialAction $socialAction): self { if (!$this->socialActions->contains($socialAction)) { $this->socialActions[] = $socialAction; } return $this; } public function getDesactivationDate(): ?DateTimeInterface { return $this->desactivationDate; } public function getId(): ?int { return $this->id; } /** * @return Collection|Result[] */ public function getResults(): Collection { return $this->results; } /** * @return Collection|SocialAction[] */ public function getSocialActions(): Collection { return $this->socialActions; } public function getTitle(): array { return $this->title; } public function removeResult(Result $result): self { $this->results->removeElement($result); 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; } }