Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class NullHandler implements \SessionHandlerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function close(): bool |
||
23 | { |
||
24 | return true; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | public function destroy($session_id): bool |
||
31 | { |
||
32 | return true; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function gc($maxlifetime): bool |
||
39 | { |
||
40 | return true; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function open($save_path, $session_id): bool |
||
47 | { |
||
48 | return true; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function read($session_id): string |
||
55 | { |
||
56 | return ''; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | public function write($session_id, $session_data): bool |
||
65 | } |
||
66 | } |
||
67 |