Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function getItem(string $resourceClass, $id, string $operationName = null, bool $fetchData = false) |
||
43 | { |
||
44 | $data = $this->decoratedProvider->getItem($resourceClass, $id, $operationName, true); |
||
45 | if (null !== $data) { |
||
46 | return $data; |
||
47 | } |
||
48 | |||
49 | throw new NotFoundHttpException('Not Found'); |
||
50 | } |
||
51 | } |
||
52 |