Aerospike\LDT\LList::removeRange PHP Method

removeRange() public method

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used to identify the elements which are to be removed. A null $min gets all elements less than or equal to $max. A null $max gets all elements greater than or equal to $min.
public removeRange ( integer | string | null $min = null, integer | string | null $max = null ) : integer
$min integer | string | null
$max integer | string | null
return integer status code of the operation
    public function removeRange($min = null, $max = null)
    {
        if (is_array($min) || is_array($max) || is_object($min) || is_object($max)) {
            $this->errorno = self::ERR_INPUT_PARAM;
            $this->error = self::MSG_RANGE_TYPE_INVALID;
            return $this->errorno;
        }
        $status = $this->client->apply($this->key, 'llist', 'remove_range', array($this->bin, $min, $max));
        $this->processStatusCode($status);
        return $this->errorno;
    }