/** * {@inheritdoc} */ public function addGroup(GroupInterface $group) { if (!$this->groups->contains($group)) { $this->groups->add($group); } return $this; }
/** * {@inheritdoc} */ public function removeGroup(GroupInterface $group) { if ($this->groups->contains($group)) { $this->groups->removeElement($group); } }