LeagueWrap\Api\Staticdata::getMastery PHP Method

getMastery() public method

If $masteryId is a set it will attempt to get info for that mastery only.
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 function getMastery($masteryId, $data = null)
    {
        $params = $this->setUpParams('mastery', $masteryId, $data, 'masteryListData', 'masteryData');
        $array = $this->makeRequest('mastery', $masteryId, $params);
        if ($this->appendId($masteryId)) {
            return new staticMastery($array);
        } else {
            return new MasteryList($array);
        }
    }