Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function create(string $resourceClass, string $property, array $options = []): PropertyMetadata |
||
43 | { |
||
44 | $cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $property, $options])); |
||
45 | |||
46 | return $this->getCached($cacheKey, function () use ($resourceClass, $property, $options) { |
||
47 | return $this->decorated->create($resourceClass, $property, $options); |
||
48 | }); |
||
51 |