@@ 146-153 (lines=8) @@ | ||
143 | * |
|
144 | * @return StoryDataWrapper |
|
145 | */ |
|
146 | public function getStoriesForCharacter(int $id, StoryFilter $storyFilter = null) : StoryDataWrapper |
|
147 | { |
|
148 | $response = $this->call('characters/' . $id . '/stories', $storyFilter); |
|
149 | ||
150 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
151 | ||
152 | return $formattedResponse; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Fetches lists of comics with optional filters. |
|
@@ 246-253 (lines=8) @@ | ||
243 | * |
|
244 | * @return StoryDataWrapper |
|
245 | */ |
|
246 | public function getStoriesForComics(int $id, EventFilter $storyFilter = null) : StoryDataWrapper |
|
247 | { |
|
248 | $response = $this->call('comics/' . $id . '/stories', $storyFilter); |
|
249 | ||
250 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
251 | ||
252 | return $formattedResponse; |
|
253 | } |
|
254 | ||
255 | /** |
|
256 | * Fetches lists of events with optional filters. |
|
@@ 363-370 (lines=8) @@ | ||
360 | * |
|
361 | * @return StoryDataWrapper |
|
362 | */ |
|
363 | public function getStoriesForEvent(int $id, StoryFilter $storyFilter = null) : StoryDataWrapper |
|
364 | { |
|
365 | $response = $this->call('events/' . $id . '/stories', $storyFilter); |
|
366 | ||
367 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
368 | ||
369 | return $formattedResponse; |
|
370 | } |
|
371 | ||
372 | /** |
|
373 | * Fetches lists of comic creators with optional filters. |
|
@@ 446-453 (lines=8) @@ | ||
443 | * |
|
444 | * @return StoryDataWrapper |
|
445 | */ |
|
446 | public function getStoriesForCreator(int $id, StoryFilter $storyFilter = null) : StoryDataWrapper |
|
447 | { |
|
448 | $response = $this->call('creators/' . $id . '/stories', $storyFilter); |
|
449 | ||
450 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
451 | ||
452 | return $formattedResponse; |
|
453 | } |
|
454 | ||
455 | /** |
|
456 | * Fetches lists of comic series with optional filters. |
|
@@ 563-570 (lines=8) @@ | ||
560 | * |
|
561 | * @return StoryDataWrapper |
|
562 | */ |
|
563 | public function getStoriesForSeries(int $id, StoryFilter $storyFilter = null) : StoryDataWrapper |
|
564 | { |
|
565 | $response = $this->call('series/' . $id . '/stories', $storyFilter); |
|
566 | ||
567 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
568 | ||
569 | return $formattedResponse; |
|
570 | } |
|
571 | ||
572 | /** |
|
573 | * Fetches lists of comic stories with optional filters. |
|
@@ 579-586 (lines=8) @@ | ||
576 | * |
|
577 | * @return StoryDataWrapper |
|
578 | */ |
|
579 | public function getStories(StoryFilter $storyFilter = null) : StoryDataWrapper |
|
580 | { |
|
581 | $response = $this->call('stories', $storyFilter); |
|
582 | ||
583 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
584 | ||
585 | return $formattedResponse; |
|
586 | } |
|
587 | ||
588 | /** |
|
589 | * This method fetches a single comic story resource. |
|
@@ 595-602 (lines=8) @@ | ||
592 | * |
|
593 | * @return StoryDataWrapper |
|
594 | */ |
|
595 | public function getStory(int $id) : StoryDataWrapper |
|
596 | { |
|
597 | $response = $this->call('stories/' . $id); |
|
598 | ||
599 | $formattedResponse = $this->formatResponse($response, StoryDataWrapper::class); |
|
600 | ||
601 | return $formattedResponse; |
|
602 | } |
|
603 | ||
604 | /** |
|
605 | * Fetches lists of comic characters appearing in a single story, with optional filters. |