LeagueWrap\Api\Stats::ranked PHP Method

ranked() public method

Gets the stats for ranked queues only by summary id.
public ranked ( mixed $identity ) : array
$identity mixed
return array
    public function ranked($identity)
    {
        $summonerId = $this->extractId($identity);
        $params = [];
        if (!is_null($this->season)) {
            $params['season'] = $this->season;
        }
        $info = $this->request('stats/by-summoner/' . $summonerId . '/ranked', $params);
        $stats = $this->attachStaticDataToDto(new RankedStats($info));
        $this->attachResponse($identity, $stats, 'rankedStats');
        return $stats;
    }