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