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