chadicus /
marvel-api-client
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Chadicus\Marvel\Api; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * PHP Client for the Marvel API. |
||
| 7 | */ |
||
| 8 | interface ClientInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Execute a search request against the Marvel API. |
||
| 12 | * |
||
| 13 | * @param string $resource The API resource to search for. |
||
| 14 | * @param array $filters Array of search criteria to use in request. |
||
| 15 | * |
||
| 16 | * @return DataWrapperInterface |
||
| 17 | * |
||
| 18 | * @throws \InvalidArgumentException Thrown if $resource is empty or not a string. |
||
| 19 | */ |
||
| 20 | public function search(string $resource, array $filters = []); |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 21 | |||
| 22 | /** |
||
| 23 | * Execute a GET request against the Marvel API for a single resource. |
||
| 24 | * |
||
| 25 | * @param string $resource The API resource to search for. |
||
| 26 | * @param integer $id The id of the API resource. |
||
| 27 | * |
||
| 28 | * @return DataWrapperInterface |
||
| 29 | */ |
||
| 30 | public function get(string $resource, int $id); |
||
|
0 ignored issues
–
show
|
|||
| 31 | } |
||
| 32 |