LeagueWrap\Api\Staticdata::getSummonerSpell PHP Method

getSummonerSpell() public method

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.
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 function getSummonerSpell($summonerSpellId, $data = null)
    {
        $params = $this->setUpParams('summoner-spell', $summonerSpellId, $data, 'spellData', 'spellData');
        $array = $this->makeRequest('summoner-spell', $summonerSpellId, $params);
        if ($this->appendId($summonerSpellId)) {
            return new staticSummonerSpell($array);
        } else {
            return new SummonerSpellList($array);
        }
    }