Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Session implements \ArrayAccess |
||
14 | { |
||
15 | /** |
||
16 | * @inheritDoc |
||
17 | */ |
||
18 | public function offsetSet($name, $value): void |
||
19 | { |
||
20 | $_SESSION[$name] = $value; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @inheritDoc |
||
25 | */ |
||
26 | public function offsetUnset($name): void |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function offsetGet($name) |
||
|
|||
35 | { |
||
36 | return $_SESSION[$name] ?? null; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function offsetExists($name): bool |
||
45 | } |
||
46 | } |
||
47 |