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