| 1 | <?php |
||
| 14 | { |
||
| 15 | public function __construct() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get true if the SESSION parameter is defined. |
||
| 22 | * |
||
| 23 | * @param string $key |
||
| 24 | * |
||
| 25 | * @return bool true |
||
| 26 | */ |
||
| 27 | public function has($key) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the SESSION keys. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function keys() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $key |
||
| 44 | * @param mixed $value |
||
| 45 | * |
||
| 46 | * @throws \LogicException |
||
| 47 | */ |
||
| 48 | public function set($key, $value) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Returns a SESSION parameter by name. |
||
| 59 | * |
||
| 60 | * @param string $key |
||
| 61 | * @param mixed|null $default The default value if parameter does not exist |
||
| 62 | * |
||
| 63 | * @return mixed|null |
||
| 64 | */ |
||
| 65 | public function fetch($key, $default = null) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Returns the number of values. |
||
| 72 | * |
||
| 73 | * @return int |
||
| 74 | */ |
||
| 75 | public function count() |
||
| 79 | } |