src/HabboParser.php
public function parseGroup($group_id)
    {
        list($data) = $this->_callUrl($this->api_base . '/api/public/groups/' . $group_id, true);

        $group = new Group();
        $group->parse($data);

        try {
            list($member_data) = $this->_callUrl($this->api_base . '/api/public/groups/' . $group_id . '/members', true);
        } catch (Exception $e) {
            // Can't collect member data
            $member_data = false;
        }

        if ($member_data) {
            /** @var Habbo[] $members */
            $members = array();
            foreach ($member_data as $member) {
                $temp_habbo = new Habbo();
                $temp_habbo->parse($member);
                $members[] = $temp_habbo;
            }
            $group->setMembers($members);
        }

        return $group;
    }
public function parseGroup($group_id)
    {
        list($data) = $this->_callUrl($this->api_base . '/api/public/groups/' . $group_id, true);

        $group = new Group();
        $group->parse($data);

        try {
            list($member_data) = $this->_callUrl($this->api_base . '/api/public/groups/' . $group_id . '/members', true);
        } catch (Exception $e) {
            // Can't collect member data
            $member_data = false;
        }

        if ($member_data) {
            /** @var Habbo[] $members */
            $members = array();
            foreach ($member_data as $member) {
                $temp_habbo = new Habbo();
                $temp_habbo->parse($member);
                $members[] = $temp_habbo;
            }
            $group->setMembers($members);
        }

        return $group;
    }
public function parseGroup ( $ group_id ) { list ( $ data ) = $ this -> _callUrl ( $ this -> api_base . '/api/public/groups/' . $ group_id , true ) ; $ group = new Group ( ) ; $ group -> parse ( $ data ) ; try { list ( $ member_data ) = $ this -> _callUrl ( $ this -> api_base . '/api/public/groups/' . $ group_id . '/members' , true ) ; } catch ( Exception $ e ) { // Can't collect member data $ member_data = false ; } if ( $ member_data ) { /** @var Habbo[] $members */ $ members = array ( ) ; foreach ( $ member_data as $ member ) { $ temp_habbo = new Habbo ( ) ; $ temp_habbo -> parse ( $ member ) ; $ members [ ] = $ temp_habbo ; } $ group -> setMembers ( $ members ) ; } return $ group ; }
parseGroup will return a Group object based on a group ID.
It will also contain the members, as an array of Habbo objects.

@param $group_id
@return Group
@throws Exception
parseGroup will return a Group object based on a group ID . It will also contain the members as an array of Habbo objects .