@@ 107-113 (lines=7) @@ | ||
104 | /** |
|
105 | * @return array |
|
106 | */ |
|
107 | public function toArray() { |
|
108 | $data = []; |
|
109 | ||
110 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
111 | $data[] = $this->current(); |
|
112 | } |
|
113 | ||
114 | return $data; |
|
115 | } |
|
116 |
@@ 124-132 (lines=9) @@ | ||
121 | /** |
|
122 | * @return array |
|
123 | */ |
|
124 | public function toArray() { |
|
125 | $data = array(); |
|
126 | ||
127 | for ($this->rewind(); $this->valid(); $this->next()) { |
|
128 | $data[] = $this->current(); |
|
129 | } |
|
130 | ||
131 | return $data; |
|
132 | } |
|
133 | ||
134 | } |
|
135 |