public function addRoute($route, RouteDocument $routeDocument) { $this->routes[$route] = $routeDocument; }