src/Koldy/Request.php
public static function containsParams(...$params): bool
    {
        $params = array_flip(is_array($params[0]) ? $params[0] : $params);

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

        return count($params) == 0;
    }
public static function containsParams(...$params): bool
    {
        $params = array_flip(is_array($params[0]) ? $params[0] : $params);

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

        return count($params) == 0;
    }
public static function containsParams ( ... $ params ) : bool { $ params = array_flip ( is_array ( $ params [ 0 ] ) ? $ params [ 0 ] : $ params ) ; foreach ( static :: getAllParameters ( ) as $ name => $ value ) { if ( array_key_exists ( $ name , $ params ) ) { unset ( $ params [ $ name ] ) ; } } return count ( $ params ) == 0 ; }
Return true if request contains all of the parameters from method argument. If there are more parameters then
params passed to methods, method will still return true.

@param mixed ...$params

@return bool
@throws Exception
Return true if request contains all of the parameters from method argument . If there are more parameters then params passed to methods method will still return true .