| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function fetchOne(string $orderBy = null, string $order = self::ORDER_BY_ASC): ? Category |
||
| 44 | { |
||
| 45 | return $this->doFetchOne( |
||
| 46 | self::ENDPOINT, |
||
| 47 | $orderBy, |
||
| 48 | $order, |
||
| 49 | function ($response) { |
||
| 50 | return (new CategoriesMapper())->map(new Collections\Categories(), $response); |
||
| 51 | } |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 68 |