SharedUtils
in package
Table of Contents
- assignCas() : int|float
- convertDurabilityLevelToCB() : string
- convertDurabilityLevelToPS() : int|null
- convertStatus() : string
- createProtostellarRequest() : ProtostellarRequest
- getCas() : string
- toArray() : array<string|int, mixed>
- Convert Protobuf RepeatedField Object to PHP array
- toAssociativeArray() : array<string|int, mixed>
Methods
assignCas()
public
static assignCas(string $cas) : int|float
Parameters
- $cas : string
Tags
Return values
int|float —convertDurabilityLevelToCB()
public
static convertDurabilityLevelToCB(int $durabilityLevel) : string
Parameters
- $durabilityLevel : int
Tags
Return values
string —convertDurabilityLevelToPS()
public
static convertDurabilityLevelToPS(string $durabilityLevel) : int|null
Parameters
- $durabilityLevel : string
Tags
Return values
int|null —convertStatus()
public
static convertStatus(string $PSStatus) : string
Parameters
- $PSStatus : string
Return values
string —createProtostellarRequest()
public
static createProtostellarRequest(mixed $grpcRequest, bool $idempotent, float $timeout) : ProtostellarRequest
Parameters
- $grpcRequest : mixed
- $idempotent : bool
- $timeout : float
Return values
ProtostellarRequest —getCas()
public
static getCas(int $cas) : string
Parameters
- $cas : int
Tags
Return values
string —toArray()
Convert Protobuf RepeatedField Object to PHP array
public
static toArray( $rf) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —toAssociativeArray()
public
static toAssociativeArray(mixed $rf) : array<string|int, mixed>
Parameters
- $rf : mixed