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