public function getGroup ($groupID)
    {
        $groups = $this->getAllGroups();
        
        foreach ($groups as $group) {
            if ($group->getID() == $groupID) {
                return $group;
            }
        }
        
        return null;
    }
public function getGroup ($groupID)
    {
        $groups = $this->getAllGroups();
        
        foreach ($groups as $group) {
            if ($group->getID() == $groupID) {
                return $group;
            }
        }
        
        return null;
    }
public function getGroup ( $ groupID ) { $ groups = $ this -> getAllGroups ( ) ; foreach ( $ groups as $ group ) { if ( $ group -> getID ( ) == $ groupID ) { return $ group ; } } return null ; }
Returns the details for a single group. If no group with the given ID is found, null will be returned.

@param int $groupID

@return Group|null
@throws Exception
Returns the details for a single group . If no group with the given ID is found null will be returned .