LeagueWrap\Api\Staticdata::getItem PHP Method

getItem() public method

If $itemId is set it will attempt to get info for that item only.
public getItem ( integer $itemId, mixed $data = null ) : LeagueWrap\Dto\StaticData\Item | LeagueWrap\Dto\StaticData\ItemList
$itemId integer
$data mixed
return LeagueWrap\Dto\StaticData\Item | LeagueWrap\Dto\StaticData\ItemList
    public function getItem($itemId, $data = null)
    {
        $params = $this->setUpParams('item', $itemId, $data, 'itemListData', 'itemData');
        $array = $this->makeRequest('item', $itemId, $params);
        if ($this->appendId($itemId)) {
            return new staticItem($array);
        } else {
            return new ItemList($array);
        }
    }