getTitle(); } public function __construct() { $this->users = new ArrayCollection(); } public function getMerchant(): ?MerchantInterface { return $this->merchant; } public function setMerchant(?MerchantInterface $merchant): self { $this->merchant = $merchant; return $this; } public function addUser(UserModel $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; } }