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