LookupInReplicaResult
extends LookupInResult
in package
Interface for results created by the lookupInReplica operation.
Table of Contents
- $cas : string|null
- $error : CouchbaseException|null
- $fields : array<string|int, mixed>
- $id : string
- $isReplica : bool
- $transcoder : Transcoder
- cas() : string|null
- Returns the CAS value for the document
- content() : mixed
- Returns the value located at the index specified
- contentByPath() : mixed
- error() : CouchbaseException|null
- Returns the error (populated for multi-operations)
- exists() : bool
- Returns whether the path at the index specified exists
- existsByPath() : bool
- expiryTime() : DateTimeInterface|null
- Returns the document expiration time or null if the document does not expire.
- id() : string
- Returns the ID of the document
- isReplica() : bool
- Returns whether the result came from a replica server
- path() : string|null
Properties
$cas
private
string|null
$cas
= null
$error
private
CouchbaseException|null
$error
= null
$fields
private
array<string|int, mixed>
$fields
$id
private
string
$id
$isReplica
private
bool
$isReplica
$transcoder
private
Transcoder
$transcoder
Methods
cas()
Returns the CAS value for the document
public
cas() : string|null
Tags
Return values
string|null —content()
Returns the value located at the index specified
public
content(int $index) : mixed
Parameters
- $index : int
-
the index to retrieve content from
Tags
Return values
mixed —contentByPath()
public
contentByPath(string $path) : mixed
Parameters
- $path : string
Tags
Return values
mixed —error()
Returns the error (populated for multi-operations)
public
error() : CouchbaseException|null
Tags
Return values
CouchbaseException|null —exists()
Returns whether the path at the index specified exists
public
exists(int $index) : bool
Parameters
- $index : int
-
the index to check for existence
Tags
Return values
bool —existsByPath()
public
existsByPath(string $path) : bool
Parameters
- $path : string
Tags
Return values
bool —expiryTime()
Returns the document expiration time or null if the document does not expire.
public
expiryTime() : DateTimeInterface|null
Note, that this function will return expiry only when LookupInOptions had withExpiry set to true.
Return values
DateTimeInterface|null —id()
Returns the ID of the document
public
id() : string
Tags
Return values
string —isReplica()
Returns whether the result came from a replica server
public
isReplica() : bool
Tags
Return values
bool —path()
public
path(int $index) : string|null
Parameters
- $index : int