public function toArray() { $array = array(); foreach ($this->keys as $key => $option) { $array[$key] = $option->getValue(); } return $array; }