private function _locationsByIdAndRank(int $id, $rank)
    {
        $curlClient = curl_init(
            self::BASE_URL .
            self::LOCATIONS_URL .
            '/' .
            $id .
            '/rankings/' .
            $rank
        );
        curl_setopt($curlClient, CURLOPT_HTTPHEADER, $this->_curlHeader);
        curl_setopt($curlClient, CURLOPT_RETURNTRANSFER, true);
        $results = json_decode(curl_exec($curlClient), true);
        $items   = [];
        foreach ($results['items'] as $result) {
            if ($rank === RankingId::CLANS) {
                $items[] = Clan::create($result);
            } else {
                $items[] = Player::create($result);
            }
        }
        return $items;
    }