@@ 212-219 (lines=8) @@ | ||
209 | * |
|
210 | * @return CreatorDataWrapper |
|
211 | */ |
|
212 | public function getCreatorsForComics(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
213 | { |
|
214 | $response = $this->call('comics/' . $id . '/creators', $creatorFilter); |
|
215 | ||
216 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
217 | ||
218 | return $formattedResponse; |
|
219 | } |
|
220 | ||
221 | /** |
|
222 | * Fetches lists of events in which a specific comic appears, with optional filters. |
|
@@ 329-336 (lines=8) @@ | ||
326 | * |
|
327 | * @return CreatorDataWrapper |
|
328 | */ |
|
329 | public function getCreatorsForEvent(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
330 | { |
|
331 | $response = $this->call('events/' . $id . '/creators', $creatorFilter); |
|
332 | ||
333 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
334 | ||
335 | return $formattedResponse; |
|
336 | } |
|
337 | ||
338 | /** |
|
339 | * Fetches lists of comic series in which a specific event takes place, with optional filters. |
|
@@ 379-386 (lines=8) @@ | ||
376 | * |
|
377 | * @return CreatorDataWrapper |
|
378 | */ |
|
379 | public function getCreators(CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
380 | { |
|
381 | $response = $this->call('creators', $creatorFilter); |
|
382 | ||
383 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
384 | ||
385 | return $formattedResponse; |
|
386 | } |
|
387 | ||
388 | /** |
|
389 | * This method fetches a single creator resource. |
|
@@ 395-402 (lines=8) @@ | ||
392 | * |
|
393 | * @return CreatorDataWrapper |
|
394 | */ |
|
395 | public function getCreator(int $id) : CreatorDataWrapper |
|
396 | { |
|
397 | $response = $this->call('creators/' . $id); |
|
398 | ||
399 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
400 | ||
401 | return $formattedResponse; |
|
402 | } |
|
403 | ||
404 | /** |
|
405 | * Fetches lists of events featuring the work of a specific creator with optional filters. |
|
@@ 412-419 (lines=8) @@ | ||
409 | * |
|
410 | * @return CreatorDataWrapper |
|
411 | */ |
|
412 | public function getComicsForCreator(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
413 | { |
|
414 | $response = $this->call('creators/' . $id . '/comics', $creatorFilter); |
|
415 | ||
416 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
417 | ||
418 | return $formattedResponse; |
|
419 | } |
|
420 | ||
421 | /** |
|
422 | * Fetches lists of comic series in which a specific creator's work appears, with optional filters. |
|
@@ 529-536 (lines=8) @@ | ||
526 | * |
|
527 | * @return CreatorDataWrapper |
|
528 | */ |
|
529 | public function getCreatorsForSeries(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
530 | { |
|
531 | $response = $this->call('series/' . $id . '/creators', $creatorFilter); |
|
532 | ||
533 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
534 | ||
535 | return $formattedResponse; |
|
536 | } |
|
537 | ||
538 | /** |
|
539 | * Fetches lists of events which occur in a specific series, with optional filters. |
|
@@ 646-653 (lines=8) @@ | ||
643 | * |
|
644 | * @return CreatorDataWrapper |
|
645 | */ |
|
646 | public function getCreatorsForStory(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper |
|
647 | { |
|
648 | $response = $this->call('stories/' . $id . '/creators', $creatorFilter); |
|
649 | ||
650 | $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class); |
|
651 | ||
652 | return $formattedResponse; |
|
653 | } |
|
654 | ||
655 | /** |
|
656 | * Fetches lists of events in which a specific story appears, with optional filters. |