trait HasContextTrait (View source)

Methods

mixed
getContext(string|null $key = null)

Get context values.

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

Add context values.

Details

mixed getContext(string|null $key = null)

Get context values.

Parameters

string|null $key

Return Value

mixed

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

Add context values.

Parameters

string|array $key
mixed $value

Return Value

HasContextTrait $this