Copied!

Context

Context.php : 16
Final
Implements OptionsBag, ArrayAccess

Methods

public__construct()

Context.php : 24
public __construct([array<string, mixed> $data = [] ])

Parameters

Name Type Default value Description
$data array<string, mixed> [] -

publicall()

Context.php : 32

Returns all options as an associative array.

public all() : array<string, mixed>

Return values

array<string, mixed>

publicget()

Context.php : 37

Returns the value of the option identified by $key.

public get(string $key[, mixed $default = null ]) : mixed

If the option does not exist, returns $default.

Parameters

Name Type Default value Description
$key string - -
$default mixed null -

publichas()

Context.php : 46

Checks if the option identified by $key exists.

public has(string $key) : bool

Parameters

Name Type Default value Description
$key string - -

Return values

bool

publicoffsetExists()

Context.php : 51
public offsetExists(mixed $offset) : bool

Parameters

Name Type Default value Description
$offset mixed - -

Return values

bool

publicoffsetGet()

Context.php : 56
public offsetGet(mixed $offset) : mixed

Parameters

Name Type Default value Description
$offset mixed - -

publicoffsetSet()

Context.php : 61
public offsetSet(mixed $offset, mixed $value) : void

Parameters

Name Type Default value Description
$offset mixed - -
$value mixed - -

publicoffsetUnset()

Context.php : 66
public offsetUnset(mixed $offset) : void

Parameters

Name Type Default value Description
$offset mixed - -