| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class NullDriver implements SessionDriverInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Returns the value store with provided key or the default value. |
||
| 25 | * |
||
| 26 | * @param string $key The key used to store the value in session. |
||
| 27 | * @param string $default The default value if no value was stored. |
||
| 28 | * |
||
| 29 | * @return mixed The stored value or the default value if key |
||
| 30 | * was not found. |
||
| 31 | */ |
||
| 32 | public function get($key, $default = null) |
||
| 33 | 2 | { |
|
| 34 | return $default; |
||
| 35 | 2 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Set/Stores a provided values with a given key. |
||
| 39 | * |
||
| 40 | * @param string $key The key used to store the value in session. |
||
| 41 | * @param mixed $value The value to store under the provided key. |
||
| 42 | * |
||
| 43 | * @return self|$this|SessionDriverInterface Self instance for |
||
| 44 | * method call chains. |
||
| 45 | */ |
||
| 46 | public function set($key, $value) |
||
| 47 | 2 | { |
|
| 48 | return $this; |
||
| 49 | 2 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Erases the values stored with the given key. |
||
| 53 | * |
||
| 54 | * @param string $key The key used to store the value in session. |
||
| 55 | * |
||
| 56 | * @return self|$this|SessionDriverInterface Self instance for |
||
| 57 | * method call chains. |
||
| 58 | */ |
||
| 59 | public function erase($key) |
||
| 62 | 2 | } |
|
| 63 | } |
||
| 64 |