public getChampion ( integer $championId, mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | |
||
$championId | integer | |
$data | mixed | |
return | LeagueWrap\Dto\StaticData\ChampionList | |
public function getChampion($championId, $data = null)
{
$params = $this->setUpParams('champion', $championId, $data, 'champData', 'champData');
$array = $this->makeRequest('champion', $championId, $params);
if ($this->appendId($championId)) {
return new staticChampion($array);
} else {
return new ChampionList($array);
}
}