Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php |
||
10 | final class LayoutDataProvider implements ItemDataProviderInterface, RestrictedDataProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ManagerRegistry |
||
14 | */ |
||
15 | private $managerRegistry; |
||
16 | |||
17 | /** |
||
18 | * LayoutDataProvider constructor. |
||
19 | * |
||
20 | * @param ManagerRegistry $managerRegistry |
||
21 | */ |
||
22 | 4 | public function __construct(ManagerRegistry $managerRegistry) |
|
25 | 4 | } |
|
26 | |||
27 | /** |
||
28 | * @param string $resourceClass |
||
29 | * @param string|null $operationName |
||
30 | * @param array $context |
||
31 | * @return bool |
||
32 | */ |
||
33 | 4 | public function supports(string $resourceClass, string $operationName = null, array $context = []): bool |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param string $resourceClass |
||
40 | * @param int|string $id |
||
41 | * @param string|null $operationName |
||
42 | * @param array $context |
||
43 | * @return Layout|null |
||
44 | */ |
||
45 | 1 | public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
|
55 |