| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Variable implements ICache |
||
| 15 | { |
||
| 16 | protected ?string $content = null; |
||
| 17 | |||
| 18 | 4 | public function init(array $what): void |
|
| 19 | { |
||
| 20 | 4 | } |
|
| 21 | |||
| 22 | 6 | public function exists(): bool |
|
| 23 | { |
||
| 24 | 6 | return !is_null($this->content); |
|
| 25 | } |
||
| 26 | |||
| 27 | 7 | public function set(string $content): bool |
|
| 31 | } |
||
| 32 | |||
| 33 | 5 | public function get(): string |
|
| 34 | { |
||
| 35 | 5 | return strval($this->content); |
|
| 36 | } |
||
| 37 | |||
| 38 | 4 | public function clear(): void |
|
| 41 | 4 | } |
|
| 42 | } |
||
| 43 |