Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ClassBoundCacheContract implements ClassBoundCacheContractInterface |
||
10 | { |
||
11 | /** @var ClassBoundCacheInterface */ |
||
12 | private $classBoundCache; |
||
13 | |||
14 | public function __construct(ClassBoundCacheInterface $classBoundCache) |
||
15 | { |
||
16 | $this->classBoundCache = $classBoundCache; |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param ReflectionClass<object> $reflectionClass |
||
21 | * @param string $key An optional key to differentiate between cache items attached to the same class. |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function get(ReflectionClass $reflectionClass, callable $resolver, string $key = '', ?int $ttl = null) |
||
38 | } |
||
39 | } |
||
40 |