1 | <?php |
||
27 | final class SessionAdapter implements ZendSessionInterface |
||
28 | { |
||
29 | /** @var SessionInterface */ |
||
30 | private $session; |
||
31 | |||
32 | public function __construct(SessionInterface $session) |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function toArray() : array |
||
44 | |||
45 | /** |
||
46 | * @param mixed $default |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function get(string $name, $default = null) |
||
53 | |||
54 | public function has(string $name) : bool |
||
58 | |||
59 | /** |
||
60 | * @param mixed $value |
||
61 | */ |
||
62 | public function set(string $name, $value) : void |
||
66 | |||
67 | public function unset(string $name) : void |
||
71 | |||
72 | public function clear() : void |
||
76 | |||
77 | public function hasChanged() : bool |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @throws \BadMethodCallException |
||
85 | */ |
||
86 | public function regenerate() : ZendSessionInterface |
||
90 | |||
91 | public function isRegenerated() : bool |
||
95 | } |
||
96 |