@@ 129-136 (lines=8) @@ | ||
126 | * |
|
127 | * @return SeriesDataWrapper |
|
128 | */ |
|
129 | public function getSeriesForCharacter(int $id, SeriesFilter $seriesFilter = null) : SeriesDataWrapper |
|
130 | { |
|
131 | $response = $this->call('characters/' . $id . '/series', $seriesFilter); |
|
132 | ||
133 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
134 | ||
135 | return $formattedResponse; |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * Fetches lists of comic stories featuring a specific character with optional filters. |
|
@@ 346-353 (lines=8) @@ | ||
343 | * |
|
344 | * @return SeriesDataWrapper |
|
345 | */ |
|
346 | public function getSeriesForEvent(int $id, SeriesFilter $seriesFilter = null) : SeriesDataWrapper |
|
347 | { |
|
348 | $response = $this->call('events/' . $id . '/series', $seriesFilter); |
|
349 | ||
350 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
351 | ||
352 | return $formattedResponse; |
|
353 | } |
|
354 | ||
355 | /** |
|
356 | * Fetches lists of comic stories from a specific event, with optional filters. |
|
@@ 429-436 (lines=8) @@ | ||
426 | * |
|
427 | * @return SeriesDataWrapper |
|
428 | */ |
|
429 | public function getSeriesForCreator(int $id, SeriesFilter $seriesFilter = null) : SeriesDataWrapper |
|
430 | { |
|
431 | $response = $this->call('creators/' . $id . '/series', $seriesFilter); |
|
432 | ||
433 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
434 | ||
435 | return $formattedResponse; |
|
436 | } |
|
437 | ||
438 | /** |
|
439 | * Fetches lists of comic stories by a specific creator with optional filters. |
|
@@ 462-469 (lines=8) @@ | ||
459 | * |
|
460 | * @return SeriesDataWrapper |
|
461 | */ |
|
462 | public function getSeries(SeriesFilter $seriesFilter = null) : SeriesDataWrapper |
|
463 | { |
|
464 | $response = $this->call('series', $seriesFilter); |
|
465 | ||
466 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
467 | ||
468 | return $formattedResponse; |
|
469 | } |
|
470 | ||
471 | /** |
|
472 | * This method fetches a single comic series resource. |
|
@@ 478-485 (lines=8) @@ | ||
475 | * |
|
476 | * @return SeriesDataWrapper |
|
477 | */ |
|
478 | public function getASeries(int $id) : SeriesDataWrapper |
|
479 | { |
|
480 | $response = $this->call('series/' . $id); |
|
481 | ||
482 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
483 | ||
484 | return $formattedResponse; |
|
485 | } |
|
486 | ||
487 | /** |
|
488 | * Fetches lists of characters which appear in specific series, with optional filters. |
|
@@ 680-687 (lines=8) @@ | ||
677 | * |
|
678 | * @return SeriesDataWrapper |
|
679 | */ |
|
680 | public function getSeriesForStory(int $id, SeriesFilter $seriesFilter = null) : SeriesDataWrapper |
|
681 | { |
|
682 | $response = $this->call('stories/' . $id . '/series', $seriesFilter); |
|
683 | ||
684 | $formattedResponse = $this->formatResponse($response, SeriesDataWrapper::class); |
|
685 | ||
686 | return $formattedResponse; |
|
687 | } |
|
688 | ||
689 | /** |
|
690 | * @param string $operation |