function getRoles();
public function addGroup(GroupInterface $group) { if (!in_array($group->getRoles(), $this->getRoles())) { $this->addRole($group->getRoles()); } if (!$this->getGroups()->contains($group)) { $this->getGroups()->add($group); } return $this; }