TransactionGetResult
extends Result
in package
Base interface for all results generated by KV operations.
Table of Contents
- $bucketName : string
- $cas : string
- $collectionName : string
- $error : CouchbaseException|null
- $id : string
- $links : array<string|int, mixed>|null
- $metadata : array<string|int, mixed>|null
- $scopeName : string
- $transcoder : Transcoder
- $value : string
- cas() : string|null
- Returns the CAS value for the document
- content() : mixed
- Returns the content of the document decoded using associated transcoder
- contentAs() : mixed
- Returns the content of the document decoded using custom transcoder
- error() : CouchbaseException|null
- Returns the error (populated for multi-operations)
- id() : string
- Returns the ID of the document
Properties
$bucketName
private
string
$bucketName
$cas
private
string
$cas
$collectionName
private
string
$collectionName
$error
private
CouchbaseException|null
$error
= null
$id
private
string
$id
$links
private
array<string|int, mixed>|null
$links
= null
$metadata
private
array<string|int, mixed>|null
$metadata
= null
$scopeName
private
string
$scopeName
$transcoder
private
Transcoder
$transcoder
$value
private
string
$value
Methods
cas()
Returns the CAS value for the document
public
cas() : string|null
Tags
Return values
string|null —content()
Returns the content of the document decoded using associated transcoder
public
content() : mixed
Tags
Return values
mixed —contentAs()
Returns the content of the document decoded using custom transcoder
public
contentAs(Transcoder $transcoder[, int|null $overrideFlags = null ]) : mixed
Parameters
- $transcoder : Transcoder
- $overrideFlags : int|null = null
Tags
Return values
mixed —error()
Returns the error (populated for multi-operations)
public
error() : CouchbaseException|null
Tags
Return values
CouchbaseException|null —id()
Returns the ID of the document
public
id() : string