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