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