| 1 | <?php |
||
| 19 | class Memory implements Handler |
||
| 20 | { |
||
| 21 | use HandlerTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $data; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * In-memory session handler constructor. |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | * |
||
| 39 | * @throws \RuntimeException |
||
| 40 | * |
||
| 41 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
| 42 | */ |
||
| 43 | public function open($savePath, $sessionName) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function close() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | * |
||
| 61 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
| 62 | */ |
||
| 63 | public function read($sessionId) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | * |
||
| 71 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
| 72 | */ |
||
| 73 | public function write($sessionId, $sessionData) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | * |
||
| 83 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
| 84 | */ |
||
| 85 | public function destroy($sessionId) |
||
| 91 | |||
| 92 | /** |
||
| 93 | * {@inheritdoc} |
||
| 94 | * |
||
| 95 | * @SuppressWarnings(PMD.ShortMethodName) |
||
| 96 | * @SuppressWarnings(PMD.UnusedFormalParameter) |
||
| 97 | */ |
||
| 98 | public function gc($maxLifetime) |
||
| 102 | } |
||
| 103 |