public function addGroup(Group $group)
    {
        $group->setService($this);

        $this->groups[$group->getName()] = $group;
    }
public function addGroup(Group $group)
    {
        $group->setService($this);

        $this->groups[$group->getName()] = $group;
    }
Adds a group.

@param Group $group