| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class GacelaFileCache |
||
| 10 | { |
||
| 11 | public const KEY_ENABLED = 'gacela-cache-enabled'; |
||
| 12 | public const DEFAULT_ENABLED_VALUE = false; |
||
| 13 | public const DEFAULT_DIRECTORY_VALUE = '/.gacela/cache'; |
||
| 14 | |||
| 15 | private static ?bool $isEnabled = null; |
||
| 16 | |||
| 17 | private ConfigInterface $config; |
||
| 18 | |||
| 19 | 47 | public function __construct(ConfigInterface $config) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @internal |
||
| 26 | */ |
||
| 27 | 10 | public static function resetCache(): void |
|
| 30 | } |
||
| 31 | |||
| 32 | 47 | public function isEnabled(): bool |
|
| 43 |