Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait HasSettingsRedis |
||
16 | { |
||
17 | use HasSettings; |
||
18 | |||
19 | /** |
||
20 | * @return \Glorand\Model\Settings\Contracts\SettingsManagerContract |
||
21 | * @throws \Glorand\Model\Settings\Exceptions\ModelSettingsException |
||
22 | */ |
||
23 | 36 | public function settings(): SettingsManagerContract |
|
24 | { |
||
25 | 36 | return new RedisSettingsManager($this); |
|
1 ignored issue
–
show
|
|||
26 | } |
||
27 | |||
28 | 36 | public function getSettingsValue(): array |
|
33 | } |
||
34 | |||
35 | 36 | public function cacheKey(string $key = null): string |
|
43 | } |
||
44 | |||
45 | abstract public function getTable(); |
||
46 | |||
47 | abstract public function getKey(); |
||
48 | } |
||
49 |