Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class RedisSettingsManager extends AbstractSettingsManager |
||
15 | { |
||
16 | 33 | public function apply(array $settings = []): SettingsManagerContract |
|
17 | { |
||
18 | 33 | Redis::set($this->model->cacheKey(), json_encode($settings)); |
|
19 | |||
20 | 33 | return $this; |
|
21 | } |
||
22 | |||
23 | 6 | public function set(string $path, $value): SettingsManagerContract |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Delete an item by its unique path. |
||
33 | * |
||
34 | * @param string|null $path |
||
35 | * @return \Glorand\Model\Settings\Contracts\SettingsManagerContract |
||
36 | */ |
||
37 | 18 | public function delete(string $path = null): SettingsManagerContract |
|
53 |