Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
55 | public function findOneBy(array $criteria, string $orderBy = null, string $order = self::ORDER_BY_ASC): ? Category |
||
56 | { |
||
57 | return $this->doFindOneBy( |
||
58 | self::ENDPOINT, |
||
59 | $criteria, |
||
60 | $orderBy, |
||
61 | $order, |
||
62 | function ($response) { |
||
63 | return (new CategoriesMapper())->map(new Collections\Categories(), $response); |
||
64 | } |
||
65 | ); |
||
66 | } |
||
67 | } |
||
68 |