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