KVResponseConverter
Table of Contents
-
convertCommonGetReplicaResult()
: mixed
-
convertCounterResult()
: CounterResult
-
convertExistsResult()
: ExistsResult
-
convertGetAllReplicasResult()
: array<string|int, mixed>
-
convertGetAndLockResult()
: GetResult
-
convertGetAndTouchResult()
: GetResult
-
convertGetAnyReplicaResult()
: array<string|int, mixed>
-
convertGetResult()
: GetResult
-
convertLookupInResult()
: LookupInResult
-
convertMutateInResult()
: MutateInResult
-
convertMutationResult()
: MutationResult
-
convertTouchResult()
: MutationResult
-
convertUnlockResult()
: Result
-
getLookupInFields()
: array<string|int, mixed>
-
getMutateInFields()
: array<string|int, mixed>
-
orderSubdocRes()
: array<string|int, mixed>
convertCommonGetReplicaResult()
public
static convertCommonGetReplicaResult(string $key, array<string|int, mixed> $response, Transcoder $transcoder) : mixed
Parameters
-
$key
: string
-
-
$response
: array<string|int, mixed>
-
-
$transcoder
: Transcoder
-
-
throws
-
DecodingFailureException
Return values
mixed
—
convertCounterResult()
public
static convertCounterResult(string $key, mixed $result) : CounterResult
Parameters
-
$key
: string
-
-
$result
: mixed
-
-
throws
-
DecodingFailureException
Return values
CounterResult
—
convertExistsResult()
public
static convertExistsResult(string $key, ExistsResponse $result) : ExistsResult
Parameters
-
$key
: string
-
-
$result
: ExistsResponse
-
-
throws
-
DecodingFailureException
Return values
ExistsResult
—
convertGetAllReplicasResult()
public
static convertGetAllReplicasResult(string $key, array<string|int, mixed> $response[, GetAllReplicasOptions $options = null ]) : array<string|int, mixed>
Parameters
-
$key
: string
-
-
$response
: array<string|int, mixed>
-
-
$options
: GetAllReplicasOptions
= null
-
-
throws
-
DocumentNotFoundException
Return values
array<string|int, mixed>
—
convertGetAndLockResult()
public
static convertGetAndLockResult(string $key, GetAndLockResponse $result[, GetAndLockOptions $options = null ]) : GetResult
Parameters
-
$key
: string
-
-
$result
: GetAndLockResponse
-
-
$options
: GetAndLockOptions
= null
-
-
throws
-
DecodingFailureException
Return values
GetResult
—
convertGetAndTouchResult()
public
static convertGetAndTouchResult(string $key, GetAndTouchResponse $result[, GetAndTouchOptions $options = null ]) : GetResult
Parameters
-
$key
: string
-
-
$result
: GetAndTouchResponse
-
-
$options
: GetAndTouchOptions
= null
-
-
throws
-
DecodingFailureException
Return values
GetResult
—
convertGetAnyReplicaResult()
public
static convertGetAnyReplicaResult(string $key, array<string|int, mixed> $response[, GetAnyReplicaOptions $options = null ]) : array<string|int, mixed>
Parameters
-
$key
: string
-
-
$response
: array<string|int, mixed>
-
-
$options
: GetAnyReplicaOptions
= null
-
-
throws
-
DocumentIrretrievableException
Return values
array<string|int, mixed>
—
convertGetResult()
public
static convertGetResult(string $key, GetResponse $result[, GetOptions $options = null ]) : GetResult
Parameters
-
$key
: string
-
-
$result
: GetResponse
-
-
$options
: GetOptions
= null
-
-
throws
-
DecodingFailureException
Return values
GetResult
—
convertLookupInResult()
public
static convertLookupInResult(string $key, LookupInResponse $result, array<string|int, mixed> $specs, array<string|int, mixed> $order[, LookupInOptions $options = null ]) : LookupInResult
Parameters
-
$key
: string
-
-
$result
: LookupInResponse
-
-
$specs
: array<string|int, mixed>
-
-
$order
: array<string|int, mixed>
-
-
$options
: LookupInOptions
= null
-
-
throws
-
DecodingFailureException
Return values
LookupInResult
—
convertMutateInResult()
public
static convertMutateInResult(string $key, MutateInResponse $result, array<string|int, mixed> $specs, array<string|int, mixed> $order) : MutateInResult
Parameters
-
$key
: string
-
-
$result
: MutateInResponse
-
-
$specs
: array<string|int, mixed>
-
-
$order
: array<string|int, mixed>
-
-
throws
-
DecodingFailureException
Return values
MutateInResult
—
convertMutationResult()
public
static convertMutationResult(string $key, mixed $mutationResult) : MutationResult
Parameters
-
$key
: string
-
-
$mutationResult
: mixed
-
-
throws
-
DecodingFailureException
Return values
MutationResult
—
convertTouchResult()
public
static convertTouchResult(string $key, TouchResponse $response) : MutationResult
Parameters
-
$key
: string
-
-
$response
: TouchResponse
-
-
throws
-
DecodingFailureException
Return values
MutationResult
—
convertUnlockResult()
public
static convertUnlockResult(string $key, string $cas) : Result
Parameters
-
$key
: string
-
-
$cas
: string
-
Return values
Result
—
getLookupInFields()
private
static getLookupInFields(array<string|int, mixed> $specs, array<string|int, mixed> $specsReq, array<string|int, mixed> $order) : array<string|int, mixed>
Parameters
-
$specs
: array<string|int, mixed>
-
-
$specsReq
: array<string|int, mixed>
-
-
$order
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
getMutateInFields()
private
static getMutateInFields(array<string|int, mixed> $specs, array<string|int, mixed> $specsReq, array<string|int, mixed> $order) : array<string|int, mixed>
Parameters
-
$specs
: array<string|int, mixed>
-
-
$specsReq
: array<string|int, mixed>
-
-
$order
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
orderSubdocRes()
private
static orderSubdocRes(array<string|int, mixed> $specs, array<string|int, mixed> $order) : array<string|int, mixed>
Parameters
-
$specs
: array<string|int, mixed>
-
-
$order
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—