Aerospike\LDT\LList::update PHP Method

update() public method

The elements must be consistently the same type (string, integer, array).
public update ( integer | string | array $value ) : integer
$value integer | string | array
return integer status code of the operation
    public function update($value)
    {
        if (!is_string($value) && !is_int($value) && !is_array($value)) {
            $this->errorno = self::ERR_INPUT_PARAM;
            $this->error = self::MSG_TYPE_NOT_SUPPORTED;
            return $this->errorno;
        }
        $status = $this->client->apply($this->key, 'llist', 'update', array($this->bin, $value));
        $this->processStatusCode($status);
        return $this->errorno;
    }