@@ 251-261 (lines=11) @@ | ||
248 | * |
|
249 | * @return ResourceCollection |
|
250 | */ |
|
251 | public function getItems(RequestParameters $paramObj) |
|
252 | { |
|
253 | $itemCollection = new ResourceCollection( |
|
254 | new ItemAdapter( |
|
255 | $this->client, |
|
256 | $this->getNewRequest(self::SUPERDESK_ENDPOINT_ITEMS, $paramObj) |
|
257 | ) |
|
258 | ); |
|
259 | ||
260 | return $itemCollection; |
|
261 | } |
|
262 | ||
263 | /** |
|
264 | * Get package by identifier. |
|
@@ 297-311 (lines=15) @@ | ||
294 | * |
|
295 | * @return ResourceCollection |
|
296 | */ |
|
297 | public function getPackages( |
|
298 | RequestParameters $paramObj, |
|
299 | $resolveAssociations = false |
|
300 | ) { |
|
301 | $packageCollection = new ResourceCollection( |
|
302 | new PackageAdapter( |
|
303 | $this->client, |
|
304 | $this->getNewRequest(self::SUPERDESK_ENDPOINT_PACKAGES, $paramObj), |
|
305 | $this, |
|
306 | $resolveAssociations |
|
307 | ) |
|
308 | ); |
|
309 | ||
310 | return $packageCollection; |
|
311 | } |
|
312 | ||
313 | /** |
|
314 | * Gets full objects for all associations for a package. |