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