protected function parseEntries(\SimpleXMLElement $xml) {
        $entries = [];
        foreach($xml->entries->entry as $entryData) {
            $rank = (int) $entryData->rank;
            $entries[$rank] = new GameLeaderboardEntry($entryData, $this);
        }

        return $entries;
    }
protected function parseEntries(\SimpleXMLElement $xml) {
        $entries = [];
        foreach($xml->entries->entry as $entryData) {
            $rank = (int) $entryData->rank;
            $entries[$rank] = new GameLeaderboardEntry($entryData, $this);
        }

        return $entries;
    }
protected function parseEntries ( \ SimpleXMLElement $ xml ) { $ entries = [ ] ; foreach ( $ xml -> entries -> entry as $ entryData ) { $ rank = ( int ) $ entryData -> rank ; $ entries [ $ rank ] = new GameLeaderboardEntry ( $ entryData , $ this ) ; } return $ entries ; }
Parses leaderboard entries from the given XML data

@param \SimpleXMLElement $xml The XML data to parse
@return GameLeaderboardEntry The leaderboard entries for the given data
Parses leaderboard entries from the given XML data