OptionsBag
OptionsBag.php
:
11
Interface
Methods¶
all()
¶
OptionsBag.php
:
18
Returns all options as an associative array.
|
|
Return values
array<string, mixed>
get()
¶
OptionsBag.php
:
25
Returns the value of the option identified by $key.
|
|
If the option does not exist, returns $default.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$key | string | - | - |
$default | mixed | null | - |
has()
¶
OptionsBag.php
:
30
Checks if the option identified by $key exists.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$key | string | - | - |
Return values
bool