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