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