Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class PageDataMetadataItemProvider implements ItemDataProviderInterface, RestrictedDataProviderInterface |
||
25 | { |
||
26 | private PageDataMetadataFactoryInterface $pageDataMetadataFactory; |
||
27 | |||
28 | public function __construct(PageDataMetadataFactoryInterface $pageDataMetadataFactory) |
||
29 | { |
||
30 | $this->pageDataMetadataFactory = $pageDataMetadataFactory; |
||
31 | } |
||
32 | |||
33 | public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
||
34 | { |
||
35 | return $this->pageDataMetadataFactory->create($id); |
||
36 | } |
||
37 | |||
38 | public function supports(string $resourceClass, string $operationName = null, array $context = []): bool |
||
41 | } |
||
42 | } |
||
43 |