public static function addRoute(Route $route) { static::$routes[] = $route; $method = $route->getMethod(); $addr = $route->getAddr(); $argsSize = $route->getArgsSize(); $route->addToTree(static::$routesTree); return $route; }