LeagueWrap\Api\Staticdata::getChampion PHP Method

getChampion() public method

If $championI is set it will attempt to get info for that champion only.
public getChampion ( integer $championId, mixed $data = null ) : LeagueWrap\Dto\StaticData\ChampionList | Champion
$championId integer
$data mixed
return LeagueWrap\Dto\StaticData\ChampionList | Champion
    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);
        }
    }