public function addRoute(array $routeArray)
    {
        $routeKeys = array_keys($routeArray);
        $routeValues = array_values($routeArray);

        $routeName = reset($routeKeys);
        $route = reset($routeValues);

        $this->routes[$routeName] = $route;

        return $this;
    }
public function addRoute(array $routeArray)
    {
        $routeKeys = array_keys($routeArray);
        $routeValues = array_values($routeArray);

        $routeName = reset($routeKeys);
        $route = reset($routeValues);

        $this->routes[$routeName] = $route;

        return $this;
    }
public function addRoute ( array $ routeArray ) { $ routeKeys = array_keys ( $ routeArray ) ; $ routeValues = array_values ( $ routeArray ) ; $ routeName = reset ( $ routeKeys ) ; $ route = reset ( $ routeValues ) ; $ this -> routes [ $ routeName ] = $ route ; return $ this ; }
Adds single route definition

@param array $routeArray
@return $this
Adds single route definition