1 | <?php |
||
7 | class MultiResultSet implements MultiResultSetInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var null|array |
||
11 | */ |
||
12 | protected $stored; |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $cursor = 0; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $next_cursor = 0; |
||
23 | |||
24 | /** |
||
25 | * @var ResultSetInterface|null |
||
26 | */ |
||
27 | protected $rowSet; |
||
28 | |||
29 | /** |
||
30 | * @var MultiResultSetAdapterInterface |
||
31 | */ |
||
32 | protected $adapter; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | protected $valid = true; |
||
38 | |||
39 | /** |
||
40 | * @param MultiResultSetAdapterInterface $adapter |
||
41 | */ |
||
42 | public function __construct(MultiResultSetAdapterInterface $adapter) |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function getStored() |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function offsetExists($offset) |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function offsetGet($offset) |
||
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | * @codeCoverageIgnore |
||
80 | */ |
||
81 | public function offsetSet($offset, $value) |
||
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | * @codeCoverageIgnore |
||
89 | */ |
||
90 | public function offsetUnset($offset) |
||
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | public function next() |
||
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | public function key() |
||
110 | |||
111 | /** |
||
112 | * @inheritdoc |
||
113 | */ |
||
114 | public function rewind() |
||
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | public function count() |
||
131 | |||
132 | /** |
||
133 | * @inheritdoc |
||
134 | */ |
||
135 | public function valid() |
||
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | public function current() |
||
154 | |||
155 | /** |
||
156 | * @param null|int $cursor |
||
157 | * |
||
158 | * @return bool |
||
159 | */ |
||
160 | protected function storedValid($cursor = null) |
||
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | */ |
||
170 | public function getNext() |
||
188 | |||
189 | /** |
||
190 | * @inheritdoc |
||
191 | */ |
||
192 | public function store() |
||
217 | } |
||
218 |