private function compareMethod(?string $routeMethod, string $requestMethod): bool
    {
        return $routeMethod == null || $routeMethod == $requestMethod;
    }
private function compareMethod(?string $routeMethod, string $requestMethod): bool
    {
        return $routeMethod == null || $routeMethod == $requestMethod;
    }
private function compareMethod ( ? string $ routeMethod , string $ requestMethod ) : bool { return $ routeMethod == null || $ routeMethod == $ requestMethod ; }
Check if given request method matches given route method

@param string|null $routeMethod
@param string $requestMethod
@return bool
Check if given request method matches given route method