src/Koldy/Request.php
public static function doesntContainParams(...$params): bool
    {
        if (is_array($params[0])) {
            $params = $params[0];
        }

        $targetCount = count($params);
        $params = array_flip($params);

        foreach (static::getAllParameters() as $name => $value) {
            if (array_key_exists($name, $params)) {
                unset($params[$name]);
            }
        }

        return count($params) == $targetCount;
    }
public static function doesntContainParams(...$params): bool
    {
        if (is_array($params[0])) {
            $params = $params[0];
        }

        $targetCount = count($params);
        $params = array_flip($params);

        foreach (static::getAllParameters() as $name => $value) {
            if (array_key_exists($name, $params)) {
                unset($params[$name]);
            }
        }

        return count($params) == $targetCount;
    }
public static function doesntContainParams ( ... $ params ) : bool { if ( is_array ( $ params [ 0 ] ) ) { $ params = $ params [ 0 ] ; } $ targetCount = count ( $ params ) ; $ params = array_flip ( $ params ) ; foreach ( static :: getAllParameters ( ) as $ name => $ value ) { if ( array_key_exists ( $ name , $ params ) ) { unset ( $ params [ $ name ] ) ; } } return count ( $ params ) == $ targetCount ; }
Return true only if request doesn't have any of the params from method argument.

@param array $params

@return bool
@throws Exception
Return true only if request doesn t have any of the params from method argument .