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