| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 = []); |
||
| 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); |
||
| 31 | } |
||
| 32 |