Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class GacelaCache |
||
10 | { |
||
11 | public const KEY_ENABLED = 'gacela-cache-enabled'; |
||
12 | public const DEFAULT_ENABLED_VALUE = true; |
||
13 | public const DEFAULT_DIRECTORY_VALUE = '.gacela/cache'; |
||
14 | |||
15 | private ConfigInterface $config; |
||
16 | |||
17 | 35 | public function __construct(ConfigInterface $config) |
|
20 | } |
||
21 | |||
22 | 35 | public function isProjectCacheEnabled(): bool |
|
29 | } |
||
30 | |||
31 | 35 | private function isCacheFromSetupGacelaDisabled(): bool |
|
34 | } |
||
35 | |||
36 | 33 | private function isCacheFromApplicationConfigEnabled(): bool |
|
41 |