/** * @param AbstractRoute $route * @return $this */ public function addRoute(AbstractRoute $route) { $this->routes[] = $route; $route->setParentRoute($this); return $this; }