Total Complexity | 6 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Session implements OfflineStorage |
||
8 | { |
||
9 | /** Just ensure the preconditions - session is active and started */ |
||
10 | public function __construct() { |
||
11 | if (session_status() === PHP_SESSION_NONE) |
||
12 | session_start(); |
||
13 | else if (session_status() === PHP_SESSION_DISABLED) |
||
14 | throw new SessionsNotEnabled(); |
||
15 | } |
||
16 | |||
17 | /** {@inheritdoc} */ |
||
18 | public function fetch(string $key) { |
||
20 | } |
||
21 | |||
22 | /** {@inheritdoc} */ |
||
23 | public function store(string $key, $value) { |
||
25 | } |
||
26 | } |