| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class CacheContract |
||
| 23 | { |
||
| 24 | protected CacheItemPoolInterface $cacheInstance; |
||
| 25 | |||
| 26 | public function __construct(CacheItemPoolInterface $cacheInstance) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $cacheKey |
||
| 33 | * @param callable $callback |
||
| 34 | * @param DateInterval|integer|null $expiresAfter |
||
| 35 | * @return mixed |
||
| 36 | * @throws InvalidArgumentException |
||
| 37 | */ |
||
| 38 | public function get(string $cacheKey, callable $callback, DateInterval|int $expiresAfter = null): mixed |
||
| 55 | } |
||
| 56 | |||
| 57 | public function __invoke(...$args): mixed |
||
| 62 |