Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
||
39 | { |
||
40 | foreach ($this->dataProviders as $dataProviders) { |
||
41 | try { |
||
42 | return $dataProviders->getItem($resourceClass, $id, $operationName, $context); |
||
43 | } catch (ResourceClassNotSupportedException $e) { |
||
44 | continue; |
||
45 | } |
||
46 | } |
||
47 | |||
48 | return null; |
||
49 | } |
||
50 | } |
||
51 |