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