Copied!

RuntimeContext

RuntimeContext.php : 22
Final
Implements OptionsBag, IteratorAggregate, ArrayAccess

Methods

public__construct()

RuntimeContext.php : 30
public __construct(array<string, mixed> $options)

Parameters

Name Type Default value Description
$options array<string, mixed> - -

publicall()

RuntimeContext.php : 35

Returns all options as an associative array.

public all() : array<string, mixed>

Return values

array<string, mixed>

publicget()

RuntimeContext.php : 40

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 -

publicgetIterator()

RuntimeContext.php : 50
public getIterator() : Iterator

Return values

Iterator

publichas()

RuntimeContext.php : 45

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()

RuntimeContext.php : 55
public offsetExists(mixed $offset) : bool

Parameters

Name Type Default value Description
$offset mixed - -

Return values

bool

publicoffsetGet()

RuntimeContext.php : 60
public offsetGet(mixed $offset) : mixed

Parameters

Name Type Default value Description
$offset mixed - -

publicoffsetSet()

RuntimeContext.php : 65
public offsetSet(mixed $offset, mixed $value) : void

Parameters

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

publicoffsetUnset()

RuntimeContext.php : 70
public offsetUnset(mixed $offset) : void

Parameters

Name Type Default value Description
$offset mixed - -