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