Copied!

OptionsBag

OptionsBag.php : 11
Interface

Methods

publicall()

OptionsBag.php : 18

Returns all options as an associative array.

public all() : array<string, mixed>

Return values

array<string, mixed>

publicget()

OptionsBag.php : 25

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

OptionsBag.php : 30

Checks if the option identified by $key exists.

public has(string $key) : bool

Parameters

Name Type Default value Description
$key string - -

Return values

bool