@@ 93-100 (lines=8) @@ | ||
90 | * |
|
91 | * @return ComicDataWrapper |
|
92 | */ |
|
93 | public function getComicsForCharacter(int $id, ComicFilter $comicFilter = null) : ComicDataWrapper |
|
94 | { |
|
95 | $response = $this->call('characters/' . $id . '/comics', $comicFilter); |
|
96 | ||
97 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
98 | ||
99 | return $formattedResponse; |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * Fetches lists of events in which a specific character appears, with optional filters. |
|
@@ 160-167 (lines=8) @@ | ||
157 | * |
|
158 | * @return ComicDataWrapper |
|
159 | */ |
|
160 | public function getComics(ComicFilter $comicFilter = null) : ComicDataWrapper |
|
161 | { |
|
162 | $response = $this->call('comics', $comicFilter); |
|
163 | ||
164 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
165 | ||
166 | return $formattedResponse; |
|
167 | } |
|
168 | ||
169 | /** |
|
170 | * This method fetches a single comic resource. |
|
@@ 176-183 (lines=8) @@ | ||
173 | * |
|
174 | * @return ComicDataWrapper |
|
175 | */ |
|
176 | public function getComic(int $id) : ComicDataWrapper |
|
177 | { |
|
178 | $response = $this->call('comics/' . $id); |
|
179 | ||
180 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
181 | ||
182 | return $formattedResponse; |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * Fetches lists of characters which appear in a specific comic with optional filters. |
|
@@ 310-317 (lines=8) @@ | ||
307 | * |
|
308 | * @return ComicDataWrapper |
|
309 | */ |
|
310 | public function getComicsForEvent(int $id, ComicFilter $comicFilter = null) : ComicDataWrapper |
|
311 | { |
|
312 | $response = $this->call('events/' . $id . '/comics', $comicFilter); |
|
313 | ||
314 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
315 | ||
316 | return $formattedResponse; |
|
317 | } |
|
318 | ||
319 | /** |
|
320 | * Fetches lists of comic creators whose work appears in a specific event, with optional filters. |
|
@@ 510-517 (lines=8) @@ | ||
507 | * |
|
508 | * @return ComicDataWrapper |
|
509 | */ |
|
510 | public function getComicsForSeries(int $id, ComicFilter $comicFilter = null) : ComicDataWrapper |
|
511 | { |
|
512 | $response = $this->call('series/' . $id . '/comics', $comicFilter); |
|
513 | ||
514 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
515 | ||
516 | return $formattedResponse; |
|
517 | } |
|
518 | ||
519 | /** |
|
520 | * Fetches lists of comic creators whose work appears in a specific series, with optional filters. |
|
@@ 627-634 (lines=8) @@ | ||
624 | * |
|
625 | * @return ComicDataWrapper |
|
626 | */ |
|
627 | public function getComicsForStory(int $id, ComicFilter $comicFilter = null) : ComicDataWrapper |
|
628 | { |
|
629 | $response = $this->call('stories/' . $id . '/comics', $comicFilter); |
|
630 | ||
631 | $formattedResponse = $this->formatResponse($response, ComicDataWrapper::class); |
|
632 | ||
633 | return $formattedResponse; |
|
634 | } |
|
635 | ||
636 | /** |
|
637 | * Fetches lists of comic creators whose work appears in a specific story, with optional filters. |