public static function ofSqlOperation($operation, $patchInsert = false) {
        if ($operation === SqlOperations::INSERT) return HttpMethods::POST;
        if ($operation === SqlOperations::SELECT) return HttpMethods::GET;
        if ($operation === SqlOperations::UPDATE) return $patchInsert ? HttpMethods::PATCH : HttpMethods::PUT;
        if ($operation === SqlOperations::DELETE) return HttpMethods::DELETE;

        return Exceptions::InvalidSqlOperationException($operation);
    }
public static function ofSqlOperation($operation, $patchInsert = false) {
        if ($operation === SqlOperations::INSERT) return HttpMethods::POST;
        if ($operation === SqlOperations::SELECT) return HttpMethods::GET;
        if ($operation === SqlOperations::UPDATE) return $patchInsert ? HttpMethods::PATCH : HttpMethods::PUT;
        if ($operation === SqlOperations::DELETE) return HttpMethods::DELETE;

        return Exceptions::InvalidSqlOperationException($operation);
    }
public static function ofSqlOperation ( $ operation , $ patchInsert = false ) { if ( $ operation === SqlOperations :: INSERT ) return HttpMethods :: POST ; if ( $ operation === SqlOperations :: SELECT ) return HttpMethods :: GET ; if ( $ operation === SqlOperations :: UPDATE ) return $ patchInsert ? HttpMethods :: PATCH : HttpMethods :: PUT ; if ( $ operation === SqlOperations :: DELETE ) return HttpMethods :: DELETE ; return Exceptions :: InvalidSqlOperationException ( $ operation ) ; }
returns the sql operators equal http method

@param  string $operation
@return string
@throws InvalidSqlOperationException

@SuppressWarnings("PHPMD.StaticAccess")
@SuppressWarnings("PHPMD.BooleanArgumentFlag")
returns the sql operators equal http method