private function getMethods(Route $route)
    {
        $methods = $route->getMethods();
        sort($methods);

        return implode('|', $methods) ?: 'ANY';
    }
private function getMethods(Route $route)
    {
        $methods = $route->getMethods();
        sort($methods);

        return implode('|', $methods) ?: 'ANY';
    }
private function getMethods ( Route $ route ) { $ methods = $ route -> getMethods ( ) ; sort ( $ methods ) ; return implode ( '|' , $ methods ) ? : 'ANY' ; }
Get a route's HTTP methods as a sorted string.

@param Route $route

@return string
Get a route s HTTP methods as a sorted string .