private function parseStatic(Input $definition, TypeCollection $types, array $attributes): StaticPath
    {
        $static = $definition->takeAllUntil("{}[]");

        $next = $this->parseRoute($definition, $types, $attributes);

        return new StaticPath($static, $next);
    }
private function parseStatic(Input $definition, TypeCollection $types, array $attributes): StaticPath
    {
        $static = $definition->takeAllUntil("{}[]");

        $next = $this->parseRoute($definition, $types, $attributes);

        return new StaticPath($static, $next);
    }
private function parseStatic ( Input $ definition , TypeCollection $ types , array $ attributes ) : StaticPath { $ static = $ definition -> takeAllUntil ( "{}[]" ) ; $ next = $ this -> parseRoute ( $ definition , $ types , $ attributes ) ; return new StaticPath ( $ static , $ next ) ; }
Parse the static part of the route definition.

@param Input $definition
@param TypeCollection $types
@param string[] $attributes
@return StaticPath
@throws InvalidRoute
@throws UnexpectedChar
Parse the static part of the route definition .