| @@ 60-69 (lines=10) @@ | ||
| 57 | * |
|
| 58 | * @return Models\Category |
|
| 59 | */ |
|
| 60 | public function get($categoryId, $params = array()) |
|
| 61 | { |
|
| 62 | $resource = 'category/' . $categoryId . '.json'; |
|
| 63 | $resource .= '?' . $this->buildQueryString($params); |
|
| 64 | $response = $this->getServiceResponse($resource); |
|
| 65 | ||
| 66 | $getCategoryResponse = new Models\ResponseCategoryGet($response); |
|
| 67 | ||
| 68 | return $getCategoryResponse->getCategory(); |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Get children categories |
|
| @@ 39-48 (lines=10) @@ | ||
| 36 | * |
|
| 37 | * @return Models\ResponseModelGet |
|
| 38 | */ |
|
| 39 | public function get($modelId, $params = array()) |
|
| 40 | { |
|
| 41 | $resource = 'model/' . $modelId . '.json'; |
|
| 42 | $resource .= '?' . $this->buildQueryString($params); |
|
| 43 | $response = $this->getServiceResponse($resource); |
|
| 44 | ||
| 45 | $getModelResponse = new Models\ResponseModelGet($response); |
|
| 46 | ||
| 47 | return $getModelResponse->getModel(); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Get model short information |
|