class RestTransportOptions implements ArrayAccess (View source)

The RestTransportOptions class provides typing to the associative array of options used to configure {\Google\ApiCore\Transport\RestTransport}.

Traits

Trait implemented by any class representing an associative array of PHP options.

Methods

bool
offsetExists($offset)

No description

offsetGet($offset)

No description

void
offsetSet($offset, $value)

No description

void
offsetUnset($offset)

No description

array
toArray()

No description

__construct(array $options)

No description

setHttpHandler(callable|null $httpHandler)

No description

setClientCertSource(callable|null $clientCertSource)

No description

setRestClientConfigPath(string|null $restClientConfigPath)

No description

Details

bool offsetExists($offset)

No description

Parameters

$offset

Return Value

bool

offsetGet($offset)

No description

Parameters

$offset

void offsetSet($offset, $value)

No description

Parameters

$offset
$value

Return Value

void

Exceptions

BadMethodCallException

void offsetUnset($offset)

No description

Parameters

$offset

Return Value

void

Exceptions

BadMethodCallException

array toArray()

No description

Return Value

array

__construct(array $options)

No description

Parameters

array $options

{ Config options used to construct the REST transport.

@type callable $httpHandler A handler used to deliver PSR-7 requests. @type callable $clientCertSource A callable which returns the client cert as a string. @type string $restClientConfigPath The path to the REST client config file. }

setHttpHandler(callable|null $httpHandler)

No description

Parameters

callable|null $httpHandler

setClientCertSource(callable|null $clientCertSource)

No description

Parameters

callable|null $clientCertSource

setRestClientConfigPath(string|null $restClientConfigPath)

No description

Parameters

string|null $restClientConfigPath