public function fetchFriends() {
        $friendsData = $this->getData($this->getBaseUrl() . '/friends?xml=1');
        $this->friends = [];
        foreach($friendsData->friends->friend as $friend) {
            $this->friends[] = self::create((string) $friend, false);
        }

        return $this->friends;
    }
public function fetchFriends() {
        $friendsData = $this->getData($this->getBaseUrl() . '/friends?xml=1');
        $this->friends = [];
        foreach($friendsData->friends->friend as $friend) {
            $this->friends[] = self::create((string) $friend, false);
        }

        return $this->friends;
    }
public function fetchFriends ( ) { $ friendsData = $ this -> getData ( $ this -> getBaseUrl ( ) . '/friends?xml=1' ) ; $ this -> friends = [ ] ; foreach ( $ friendsData -> friends -> friend as $ friend ) { $ this -> friends [ ] = self :: create ( ( string ) $ friend , false ) ; } return $ this -> friends ; }
Fetches the friends of this user

This creates a new <var>SteamId</var> instance for each of the friends
without fetching their data.

@return SteamId[]
@see getFriends()
@throws SteamCondenserException if an error occurs while parsing the
data
Fetches the friends of this user