PHP Класс LeagueWrap\Api\Summoner

Наследование: extends AbstractApi
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$defaultRemember integer The amount of time we intend to remember the response for.
$permittedRegions A list of all permitted regions for the Champion api call.
$summoners array The summoners we have loaded.
$versions array Valid version for this api call.

Открытые методы

Метод Описание
__get ( string $key ) : object | null Attempt to get a summoner by key.
allInfo ( mixed $identities ) : LeagueWrap\Dto\Summoner; Attempts to get all information about this user. This method will make 3 requests!
get ( string $key ) : object | null Attempt to get a summoner by key.
getDomain ( ) : String
info ( mixed $identities ) : LeagueWrap\Dto\Summoner Gets the information about the user by the given identification. IDs must be of type integer, otherwise, numeric string values will be assumed to be names.
masteryPages ( mixed $identities ) : array Gets all the mastery pages of the given user object or id.
name ( mixed $identities ) : array Gets the name of each summoner from a list of ids.
runePages ( mixed $identities ) : array Gets all rune pages of the given user object or id.

Защищенные методы

Метод Описание
infoByIds ( array $ids ) : LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[]; Gets the information by the id of the summoner.
infoByNames ( array $names ) : LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[]; Gets the information by the name of the summoner.

Описание методов

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

Attempt to get a summoner by key.
public __get ( string $key ) : object | null
$key string
Результат object | null

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

Attempts to get all information about this user. This method will make 3 requests!
public allInfo ( mixed $identities ) : LeagueWrap\Dto\Summoner;
$identities mixed
Результат LeagueWrap\Dto\Summoner;

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

Attempt to get a summoner by key.
public get ( string $key ) : object | null
$key string
Результат object | null

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

public getDomain ( ) : String
Результат String domain used for the request

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

Gets the information about the user by the given identification. IDs must be of type integer, otherwise, numeric string values will be assumed to be names.
public info ( mixed $identities ) : LeagueWrap\Dto\Summoner
$identities mixed
Результат LeagueWrap\Dto\Summoner

infoByIds() защищенный Метод

Gets the information by the id of the summoner.
protected infoByIds ( array $ids ) : LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[];
$ids array
Результат LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[];

infoByNames() защищенный Метод

Gets the information by the name of the summoner.
protected infoByNames ( array $names ) : LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[];
$names array
Результат LeagueWrap\Dto\Summoner | LeagueWrap\Dto\Summoner[];

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

Gets all the mastery pages of the given user object or id.
public masteryPages ( mixed $identities ) : array
$identities mixed
Результат array

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

Gets the name of each summoner from a list of ids.
public name ( mixed $identities ) : array
$identities mixed
Результат array

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

Gets all rune pages of the given user object or id.
public runePages ( mixed $identities ) : array
$identities mixed
Результат array

Описание свойств

$defaultRemember защищенное свойство

The amount of time we intend to remember the response for.
protected int $defaultRemember
Результат integer

$permittedRegions защищенное свойство

A list of all permitted regions for the Champion api call.
protected $permittedRegions

$summoners защищенное свойство

The summoners we have loaded.
protected array $summoners
Результат array

$versions защищенное свойство

Valid version for this api call.
protected array $versions
Результат array