1 | <?php |
||
30 | class ArrayAccessor implements \ArrayAccess |
||
31 | { |
||
32 | /** |
||
33 | * @var SessionInterface |
||
34 | */ |
||
35 | private $session; |
||
36 | |||
37 | /** |
||
38 | * ArrayAccessor constructor. |
||
39 | * |
||
40 | * @param SessionInterface $session |
||
41 | */ |
||
42 | 5 | public function __construct(SessionInterface $session) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function offsetExists($offset) : bool |
|
54 | |||
55 | /** |
||
56 | * Offset to retrieve. |
||
57 | * |
||
58 | * @link http://php.net/manual/en/arrayaccess.offsetget.php |
||
59 | * |
||
60 | * @param string $offset |
||
61 | * @param null $default |
||
62 | * |
||
63 | * @return array|bool|float|int|mixed|string |
||
64 | */ |
||
65 | 1 | public function offsetGet($offset, $default = null) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 1 | public function offsetSet($offset, $value) |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | 1 | public function offsetUnset($offset) |
|
85 | |||
86 | /** |
||
87 | * @return SessionInterface |
||
88 | */ |
||
89 | 1 | public function getSession(): SessionInterface |
|
93 | } |
||
94 |