Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class CachedPageDataMetadataFactory implements PageDataMetadataFactoryInterface |
||
26 | { |
||
27 | use CachedTrait; |
||
28 | |||
29 | public const CACHE_KEY_PREFIX = 'page_data_metadata_'; |
||
30 | |||
31 | private PageDataMetadataFactoryInterface $decorated; |
||
32 | |||
33 | public function __construct(CacheItemPoolInterface $cacheItemPool, PageDataMetadataFactoryInterface $decorated) |
||
34 | { |
||
35 | $this->cacheItemPool = $cacheItemPool; |
||
36 | $this->decorated = $decorated; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function create(string $resourceClass): PageDataMetadata |
||
48 | }); |
||
49 | } |
||
51 |