| 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 | public function open($savePath, $sessionName) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function close() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function read($sessionId) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function write($sessionId, $sessionData) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function destroy($sessionId) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritdoc} |
||
| 78 | * |
||
| 79 | * @SuppressWarnings(PMD.ShortMethodName) |
||
| 80 | */ |
||
| 81 | public function gc($maxLifetime) |
||
| 85 | } |
||
| 86 |