/** * Return this component's structure as array * * @return array */ public function toArray() { $array = array('url' => $this->url->getPath()); foreach ($this->url->getParams() as $key => $value) { $array[$key] = $value; } return $array; }