Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Dummy implements SessionInterface |
||
14 | { |
||
15 | protected $storage = []; |
||
16 | |||
17 | /** |
||
18 | * @param string $key |
||
19 | * |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function get($key) |
||
23 | { |
||
24 | if (isset($this->storage[$key])) { |
||
25 | return $this->storage[$key]; |
||
26 | } |
||
27 | |||
28 | return null; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $key |
||
33 | * @param mixed $value |
||
34 | */ |
||
35 | public function set($key, $value) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $key |
||
42 | */ |
||
43 | public function delete($key) |
||
50 |