@@ -32,9 +32,9 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * Instantiate object. |
| 34 | 34 | * |
| 35 | - * @param Superdesk\CotentApiSdk\Client\ClientInterface $client HTTP client |
|
| 36 | - * @param Superdesk\CotentApiSdk\API\Request $request API Request is_object(var) |
|
| 37 | - * @param Superdesk\CotentApiSdk\ContentApiSdk $apiInstance SDK Instance |
|
| 35 | + * @param \Superdesk\ContentApiSdk\Client\ClientInterface $client HTTP client |
|
| 36 | + * @param \Superdesk\ContentApiSdk\API\Request $request API Request is_object(var) |
|
| 37 | + * @param \Superdesk\ContentApiSdk\ContentApiSdk $apiInstance SDK Instance |
|
| 38 | 38 | * @param boolean $resolveAssociations Resolve package associations |
| 39 | 39 | */ |
| 40 | 40 | public function __construct($client, $request, $apiInstance, $resolveAssociations) |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | $packages[$id] = $this->apiInstance->injectAssociations($package, $associations); |
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | - } catch(\Exception $e) { |
|
| 67 | + } catch (\Exception $e) { |
|
| 68 | 68 | throw new InvalidDataException('Could not convert resources to packages.', $e->getCode(), $e); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * |
| 211 | 211 | * @param array $params Filter parameters |
| 212 | 212 | * |
| 213 | - * @return mixed |
|
| 213 | + * @return ResourceCollection |
|
| 214 | 214 | */ |
| 215 | 215 | public function getItems($params) |
| 216 | 216 | { |
@@ -259,10 +259,8 @@ discard block |
||
| 259 | 259 | * Get multiple packages based on a filter. |
| 260 | 260 | * |
| 261 | 261 | * @param array $params Filter parameters |
| 262 | - * @param bool $resolveItems Inject full associations recursively instead |
|
| 263 | - * of references by uri. |
|
| 264 | 262 | * |
| 265 | - * @return mixed |
|
| 263 | + * @return ResourceCollection |
|
| 266 | 264 | */ |
| 267 | 265 | public function getPackages($params, $resolveAssociations = false) |
| 268 | 266 | { |
@@ -411,7 +409,7 @@ discard block |
||
| 411 | 409 | * set to true. Throws an InvalidArgumentException when an invalid value |
| 412 | 410 | * is supplied for a parameter. |
| 413 | 411 | * |
| 414 | - * @param mixed[] $requestParameters Array of parameter, where key |
|
| 412 | + * @param string[] $requestParameters Array of parameter, where key |
|
| 415 | 413 | * represents the parameter name |
| 416 | 414 | * @param boolean $validate Validation boolean |
| 417 | 415 | * |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | foreach ($resources as $itemData) { |
| 35 | 35 | $items[] = new Item($itemData); |
| 36 | 36 | } |
| 37 | - } catch(\Exception $e) { |
|
| 37 | + } catch (\Exception $e) { |
|
| 38 | 38 | throw new InvalidDataException('Could not convert resources to items.', $e->getCode(), $e); |
| 39 | 39 | } |
| 40 | 40 | |