getTitle(); } public function __construct() { $this->users = new ArrayCollection(); } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function addUser(UserInterface $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; } return $this; } /** * @return Collection|UserInterface[] */ public function getUsers(): Collection { return $this->users; } public function removeUser(UserInterface $user): self { if ($this->users->contains($user)) { $this->users->removeElement($user); } return $this; } }