1 | <?php |
||
19 | class Memory implements Handler |
||
20 | { |
||
21 | use HandlerTrait; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $data = []; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | * |
||
31 | * @throws \RuntimeException |
||
32 | * |
||
33 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
34 | */ |
||
35 | public function open($savePath, $sessionName) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function close() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | * |
||
53 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
54 | */ |
||
55 | public function read($sessionId) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | * |
||
63 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
64 | */ |
||
65 | public function write($sessionId, $sessionData) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | * |
||
75 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
76 | */ |
||
77 | public function destroy($sessionId) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | * |
||
95 |