Documentation

CounterResult extends MutationResult
in package

Interface for results created by the counter operation.

Table of Contents

$cas  : string|null
$error  : CouchbaseException|null
$id  : string
$mutationToken  : MutationToken|null
$value  : int
cas()  : string|null
Returns the CAS value for the document
content()  : int
Returns the new value of the counter
error()  : CouchbaseException|null
Returns the error (populated for multi-operations)
id()  : string
Returns the ID of the document
mutationToken()  : MutationToken|null
Returns the mutation token generated during the mutation

Properties

$cas

private string|null $cas = null

Methods

cas()

Returns the CAS value for the document

public cas() : string|null
Tags
since
4.0.0
Return values
string|null

content()

Returns the new value of the counter

public content() : int
Tags
since
4.0.0
Return values
int

id()

Returns the ID of the document

public id() : string
Tags
since
4.0.0
Return values
string

        

Search results