Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
61 | 1 | public function findOneBy(array $criteria, string $orderBy = null, string $order = self::ORDER_BY_ASC): ? Product |
|
62 | { |
||
63 | 1 | return $this->doFindOneBy( |
|
64 | 1 | self::ENDPOINT, |
|
65 | $criteria, |
||
66 | $orderBy, |
||
67 | $order, |
||
68 | 1 | function ($response) { |
|
69 | 1 | return (new ProductsMapper())->map(new Collections\Products(), $response); |
|
70 | 1 | } |
|
71 | ); |
||
72 | } |
||
73 | } |
||
74 |