trait GapicClientTrait (View source)

internal  
 

Common functions used to work with various clients.

Traits

Provides basic array helper methods.

Provides helper methods for gRPC support.

Methods

static array
validate(array $arr, array $requiredKeys)

No description

static array
validateNotNull(array $arr, array $requiredKeys)

No description

close()

Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately cancelled.

Details

static array validate(array $arr, array $requiredKeys)

No description

Parameters

array $arr

Associative array

array $requiredKeys

List of keys to check for in $arr

Return Value

array

Returns $arr for fluent use

static array validateNotNull(array $arr, array $requiredKeys)

No description

Parameters

array $arr

Associative array

array $requiredKeys

List of keys to check for in $arr

Return Value

array

Returns $arr for fluent use

close()

Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately cancelled.