src/Domain/DefaultMenu.php
public function addGroup(Group $group)
    {
        $this->groups->put($group->getName(), $group);

        return $this;
    }
public function addGroup(Group $group)
    {
        $this->groups->put($group->getName(), $group);

        return $this;
    }
public function addGroup ( Group $ group ) { $ this -> groups -> put ( $ group -> getName ( ) , $ group ) ; return $ this ; }
Add a Group instance to the Menu

@param Group $group

@return $this
Add a Group instance to the Menu