private function matchRequestMethod(
        string $method = null,
        array $supported = null
    ) {
        if ($supported && !in_array($method, $supported)) {
            return false;
        }

        return true;
    }
private function matchRequestMethod(
        string $method = null,
        array $supported = null
    ) {
        if ($supported && !in_array($method, $supported)) {
            return false;
        }

        return true;
    }
private function matchRequestMethod ( string $ method = null , array $ supported = null ) { if ( $ supported && ! in_array ( $ method , $ supported ) ) { return false ; } return true ; }
Check if the request method matches.

@param string $method    as request method.
@param string $supported as request methods that are valid.

@return boolean true if request method matches
Check if the request method matches .