public function toIndexedArray() { $array = array(); foreach ($this->items as $key => $item) { $array[$key] = $item; } return $array; }