1 | <?php |
||
5 | class Character extends AbstractModel |
||
6 | { |
||
7 | /** |
||
8 | * Get all locations without running API call. Useful if you want to perform additional filtering. |
||
9 | * |
||
10 | * @param bool $removeDuplicates |
||
11 | * @return array|\Zmaglica\RickAndMortyApiWrapper\Api\AbstractApi |
||
12 | */ |
||
13 | public function locations($removeDuplicates = false) |
||
19 | |||
20 | /** |
||
21 | * Get all locations. |
||
22 | * @param bool $removeDuplicates |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function getLocations($removeDuplicates = false) |
||
29 | |||
30 | /** |
||
31 | * Get all origin locations. Useful if you want to perform additional filtering. |
||
32 | * |
||
33 | * @param bool $removeDuplicates |
||
34 | * @return array|\Zmaglica\RickAndMortyApiWrapper\Api\AbstractApi |
||
35 | */ |
||
36 | public function origins($removeDuplicates = false) |
||
42 | |||
43 | /** |
||
44 | * Get all origin locations. |
||
45 | * |
||
46 | * @param bool $removeDuplicates |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getOrigins($removeDuplicates = false) |
||
53 | |||
54 | /** |
||
55 | * Get all episodes. Useful if you want to perform additional filtering. |
||
56 | * |
||
57 | * @param bool $removeDuplicates |
||
58 | * @return \Zmaglica\RickAndMortyApiWrapper\Api\AbstractApi |
||
59 | */ |
||
60 | public function episodes($removeDuplicates = false) |
||
66 | |||
67 | /** |
||
68 | * Get all episodes |
||
69 | * |
||
70 | * @param bool $removeDuplicates |
||
71 | * @return mixed |
||
72 | */ |
||
73 | public function getEpisodes($removeDuplicates = false) |
||
77 | |||
78 | /** |
||
79 | * This helper function will extract all URL ids by key. Key can be location, residence or episode |
||
80 | * @param $key |
||
81 | * @param $removeDuplicates |
||
82 | * @return array |
||
83 | */ |
||
84 | private function extractIdsFromResponseBasedOnKey($key, $removeDuplicates) |
||
110 | } |
||
111 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.