Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function fetch(string $orderBy = null, string $order = self::ORDER_BY_ASC, int $limit = null): Collections\Inventory\Items |
|
33 | { |
||
34 | 1 | return $this->doFetch( |
|
35 | 1 | self::ENDPOINT, |
|
36 | $orderBy, |
||
37 | $order, |
||
38 | $limit, |
||
39 | function ($response) { |
||
40 | 1 | return (new ItemsMapper())->map(new Collections\Inventory\Items(), $response); |
|
41 | 1 | } |
|
42 | ); |
||
43 | } |
||
44 | |||
70 |