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