LeagueWrap\Api\Matchlist::matchlist PHP Метод

matchlist() публичный Метод

Get the match list by summoner identity.
public matchlist ( $identity, array | string | null $rankedQueues = null, array | string | null $seasons = null, array | string | null $championIds = null, integer | null $beginIndex = null, integer | null $endIndex = null, integer | null $beginTime = null, integer | null $endTime = null ) : LeagueWrap\Dto\MatchHistory
$identity int|Summoner
$rankedQueues array | string | null List of ranked queue types to use for fetching games.
$seasons array | string | null List of seasons to use for fetching games.
$championIds array | string | null Comma-separated list of champion IDs to use for fetching games.
$beginIndex integer | null The begin index to use for fetching games.
$endIndex integer | null The end index to use for fetching games.
$beginTime integer | null The begin time for fetching games in milliseconds
$endTime integer | null The end time for fetching games in milliseconds
Результат LeagueWrap\Dto\MatchHistory
    public function matchlist($identity, $rankedQueues = null, $seasons = null, $championIds = null, $beginIndex = null, $endIndex = null, $beginTime = null, $endTime = null)
    {
        $summonerId = $this->extractId($identity);
        $requestParamas = $this->parseParams($rankedQueues, $seasons, $championIds, $beginIndex, $endIndex, $beginTime, $endTime);
        $array = $this->request('matchlist/by-summoner/' . $summonerId, $requestParamas);
        $matchList = $this->attachStaticDataToDto(new \LeagueWrap\Dto\MatchList($array));
        $this->attachResponse($identity, $matchList, 'matchlist');
        return $matchList;
    }