Property | Type | Description | |
---|---|---|---|
$DDversion | string | The version of League of Legends that we want data from. By default it is not passed (null). | |
$dataById | array | A list of all calls that require to get the data by Id | |
$defaultRemember | integer | The amount of time we intend to remember the response for. | |
$locale | string | The locale you want the response in. By default it is not passed (null). | |
$permittedRegions | array | A list of all permitted regions for the Staticdata api call. | |
$versions | array | Valid version for this api call. |
Method | Description | |
---|---|---|
getChampion ( integer $championId, mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | |
Gets the static champion data of all champions if $championId is null. | |
getChampions ( mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | Gets all static champion data with the given $data option. | |
getDomain ( ) : String | ||
getItem ( integer $itemId, mixed $data = null ) : LeagueWrap\Dto\StaticData\Item | LeagueWrap\Dto\StaticData\ItemList | Gets the static item data of all items if $itemId is null. | |
getItems ( mixed $data = null ) : LeagueWrap\Dto\StaticData\ItemList | Gets static data on all items. | |
getMasteries ( mixed $data = null ) : LeagueWrap\Dto\StaticData\MasteryList | Gets static data on all masteries. | |
getMastery ( integer $masteryId, mixed $data = null ) : LeagueWrap\Dto\StaticData\MasteryList | LeagueWrap\Dto\StaticData\Mastery | Gets the mastery data of all masteries if $masteryId is null. | |
getRealm ( ) : LeagueWrap\Dto\StaticData\Realm | Get the realm information for the current region. | |
getRune ( integer $runeId, mixed $data = null ) : LeagueWrap\Dto\StaticData\RuneList | LeagueWrap\Dto\StaticData\Rune | Gets the rune data of all runes if $runeId is null. | |
getRunes ( mixed $data = null ) : LeagueWrap\Dto\StaticData\RuneList | Gets static data on all runes. | |
getSummonerSpell ( integer $summonerSpellId, mixed $data = null ) : LeagueWrap\Dto\StaticData\SummonerSpell | LeagueWrap\Dto\StaticData\SummonerSpellList | Gets the summoner spell data of all spells if $summonerSpellId is null If $summonerSpellId is set it will attept to get info for that spell only. | |
getSummonerSpells ( mixed $data = null ) : LeagueWrap\Dto\StaticData\SummonerSpellList | Gets static data on all summoner spells. | |
setDDversion ( string $DDversion = null ) | Sets the DDversion to be used in the query. Null will return the most recent version. | |
setLocale ( string $locale ) | Sets the locale the data should be returned in. Null returns the default local for that region. | |
version ( ) : Array | Get the version information for the current region. |
Method | Description | |
---|---|---|
appendId ( mixed $requestId ) : boolean | Check if we should append the id to the end of the url or not. | |
dataById ( $name ) : boolean | Check if we need the data by Id | |
makeRequest ( string $path, mixed $requestId, array $params ) : array | Make the request given the proper information. | |
setUpParams ( string $name = '', mixed $requestId = null, mixed $data = null, string $listData = '', string $itemData = '' ) : array | Set up the boiler plate for the param array for any static data call. |
public getChampion ( integer $championId, mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | |
||
$championId | integer | |
$data | mixed | |
return | LeagueWrap\Dto\StaticData\ChampionList | |
public getChampions ( mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | ||
$data | mixed | |
return | LeagueWrap\Dto\StaticData\ChampionList |
public getMasteries ( mixed $data = null ) : LeagueWrap\Dto\StaticData\MasteryList | ||
$data | mixed | |
return | LeagueWrap\Dto\StaticData\MasteryList |
public getMastery ( integer $masteryId, mixed $data = null ) : LeagueWrap\Dto\StaticData\MasteryList | LeagueWrap\Dto\StaticData\Mastery | ||
$masteryId | integer | |
$data | mixed | |
return | LeagueWrap\Dto\StaticData\MasteryList | LeagueWrap\Dto\StaticData\Mastery |
public getRealm ( ) : LeagueWrap\Dto\StaticData\Realm | ||
return | LeagueWrap\Dto\StaticData\Realm |
public getSummonerSpell ( integer $summonerSpellId, mixed $data = null ) : LeagueWrap\Dto\StaticData\SummonerSpell | LeagueWrap\Dto\StaticData\SummonerSpellList | ||
$summonerSpellId | integer | |
$data | mixed | |
return | LeagueWrap\Dto\StaticData\SummonerSpell | LeagueWrap\Dto\StaticData\SummonerSpellList |
public getSummonerSpells ( mixed $data = null ) : LeagueWrap\Dto\StaticData\SummonerSpellList | ||
$data | mixed | |
return | LeagueWrap\Dto\StaticData\SummonerSpellList |
public setDDversion ( string $DDversion = null ) | ||
$DDversion | string |
public version ( ) : Array | ||
return | Array |
protected string $DDversion | ||
return | string |
protected array $dataById | ||
return | array |
protected int $defaultRemember | ||
return | integer |
protected string $locale | ||
return | string |
protected array $permittedRegions | ||
return | array |
protected array $versions | ||
return | array |