Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class Cache |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @var Psr\SimpleCache\CacheInterface |
||
|
|||
28 | */ |
||
29 | private $adapter; |
||
30 | |||
31 | /** |
||
32 | * Cache constructor |
||
33 | * @param Psr\SimpleCache\CacheInterface $cacheAdapter |
||
34 | */ |
||
35 | public function __construct(CacheInterface $cacheAdapter) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Gets the current adapter |
||
42 | * @return Psr\SimpleCache\CacheInterface |
||
43 | */ |
||
44 | public function getAdapter(): CacheInterface |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string $method |
||
51 | * @param array|null $arguments |
||
52 | * @return mixed |
||
53 | * @throws \Quantum\Exceptions\AppException |
||
54 | */ |
||
55 | public function __call(string $method, ?array $arguments) |
||
65 |