Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | abstract class LaravelDriver |
||
9 | { |
||
10 | /** @var string */ |
||
11 | private const DEFAULT_CACHE_PREFIX = 'throttle_cache'; |
||
12 | |||
13 | protected Container $_container; |
||
14 | protected string $_driver; |
||
15 | protected array $_options; |
||
16 | private string $_driverStoreKey; |
||
17 | |||
18 | 15 | public function __construct(string $driver, array $options = []) |
|
24 | 15 | } |
|
25 | |||
26 | 15 | public function getContainer(): Container |
|
32 | } |
||
33 | |||
34 | abstract protected function _setContainer(): void; |
||
35 | |||
36 | 15 | private function _setConfig(): void |
|
42 | ]; |
||
43 | 15 | } |
|
44 | |||
45 | 2 | protected function _setStoreValue(string $key, $value): void |
|
50 |