Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class CacheReturner |
||
14 | { |
||
15 | /** |
||
16 | * @var CacheInterface |
||
17 | */ |
||
18 | private $cache; |
||
19 | |||
20 | /** |
||
21 | * @var LoggerInterface |
||
22 | */ |
||
23 | private $logger; |
||
24 | |||
25 | /** |
||
26 | * CacheReturner constructor. |
||
27 | * |
||
28 | * @param CacheInterface $cache |
||
29 | * @param LoggerInterface $logger |
||
30 | */ |
||
31 | public function __construct(CacheInterface $cache, LoggerInterface $logger) |
||
35 | } |
||
36 | |||
37 | public function return(string $key, callable $callback) |
||
55 |