1 | <?php |
||
10 | class ElementStorage implements \Countable, \ArrayAccess, \Iterator |
||
11 | { |
||
12 | private $data = []; |
||
13 | |||
14 | /** |
||
15 | * @inheritdoc |
||
16 | */ |
||
17 | 71 | public function count() |
|
21 | |||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | 71 | public function offsetExists($offset) |
|
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 70 | public function offsetGet($offset) |
|
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 150 | public function offsetSet($offset, $value) |
|
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | 14 | public function offsetUnset($offset) |
|
74 | |||
75 | 13 | public function remove(ElementInterface $element) |
|
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | 8 | public function current() |
|
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | */ |
||
94 | 8 | public function next() |
|
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | 1 | public function key() |
|
106 | |||
107 | /** |
||
108 | * @inheritdoc |
||
109 | */ |
||
110 | 8 | public function valid() |
|
114 | |||
115 | /** |
||
116 | * @inheritdoc |
||
117 | */ |
||
118 | 8 | public function rewind() |
|
122 | } |
||
123 |