src/Yandex/Market/Content/Clients/CategoryClient.php
public function get($categoryId, $params = array())
    {
        $resource = 'category/' . $categoryId . '.json';
        $resource .= '?' . $this->buildQueryString($params);
        $response = $this->getServiceResponse($resource);

        $getCategoryResponse = new Models\ResponseCategoryGet($response);

        return $getCategoryResponse->getCategory();
    }
public function get($categoryId, $params = array())
    {
        $resource = 'category/' . $categoryId . '.json';
        $resource .= '?' . $this->buildQueryString($params);
        $response = $this->getServiceResponse($resource);

        $getCategoryResponse = new Models\ResponseCategoryGet($response);

        return $getCategoryResponse->getCategory();
    }
public function get ( $ categoryId , $ params = array ( ) ) { $ resource = 'category/' . $ categoryId . '.json' ; $ resource .= '?' . $ this -> buildQueryString ( $ params ) ; $ response = $ this -> getServiceResponse ( $ resource ) ; $ getCategoryResponse = new Models \ ResponseCategoryGet ( $ response ) ; return $ getCategoryResponse -> getCategory ( ) ; }
Get category information

Returns category of Yandex.Market service according to params.

@see https://tech.yandex.ru/market/content-data/doc/dg/reference/category-id-docpage/

@param int   $categoryId
@param array $params

@return Models\Category
Get category information