| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function fetchOne(string $orderBy = null, string $order = self::ORDER_BY_ASC): ? Product |
||
| 50 | { |
||
| 51 | return $this->doFetchOne( |
||
| 52 | self::ENDPOINT, |
||
| 53 | $orderBy, |
||
| 54 | $order, |
||
| 55 | function ($response) { |
||
| 56 | return (new ProductsMapper())->map(new Collections\Products(), $response); |
||
| 57 | } |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | |||
| 74 |