@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | class Session implements \ArrayAccess |
15 | 15 | { |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $variable |
|
19 | + */ |
|
17 | 20 | static function read($variable, $default = null) |
18 | 21 | { |
19 | 22 | return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default; |
@@ -39,7 +42,7 @@ discard block |
||
39 | 42 | * Returns true if session has variable set up, false otherwise. |
40 | 43 | * |
41 | 44 | * @param string $variable |
42 | - * @return mixed value |
|
45 | + * @return boolean value |
|
43 | 46 | */ |
44 | 47 | static function has($variable) |
45 | 48 | { |