@@ 116-125 (lines=10) @@ | ||
113 | * @return array |
|
114 | * The elements |
|
115 | */ |
|
116 | public function toArray() |
|
117 | { |
|
118 | $data = []; |
|
119 | ||
120 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
121 | $data[] = $this->current(); |
|
122 | } |
|
123 | ||
124 | return $data; |
|
125 | } |
|
126 | ||
127 | /** |
|
128 | * {@inheritdoc} |
@@ 128-137 (lines=10) @@ | ||
125 | * @return array |
|
126 | * The elements |
|
127 | */ |
|
128 | public function toArray() |
|
129 | { |
|
130 | $data = []; |
|
131 | ||
132 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
133 | $data[] = $this->current(); |
|
134 | } |
|
135 | ||
136 | return $data; |
|
137 | } |
|
138 | } |
|
139 |