Failed Conditions
Branch v3.x (aec8e0)
by Chad
01:59
created

ClientInterface::get()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
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
Unknown type hint "string" found for $resource
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
Coding Style introduced by
Unknown type hint "string" found for $resource
Loading history...
Coding Style introduced by
Unknown type hint "int" found for $id
Loading history...
31
}
32