trait HasContext

Properties

protected array<string, mixed> $context

Methods

withContext(array|string $key, mixed $value = null)

Set the API request/response context.

mixed
context(string|null $key = null, mixed $default = null)

Get the API request/response context.

Details

at line 19
HasContext withContext(array|string $key, mixed $value = null)

Set the API request/response context.

Parameters

array|string $key
mixed $value

Return Value

HasContext

at line 35
mixed context(string|null $key = null, mixed $default = null)

Get the API request/response context.

Parameters

string|null $key
mixed $default

Return Value

mixed