Methods¶
__construct()
¶
Context.php
:
24
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $data | array<string, mixed> | [] | - |
all()
¶
Context.php
:
32
Returns all options as an associative array.
|
|
|
Return values
array<string, mixed>
get()
¶
Context.php
:
37
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()
¶
Context.php
:
46
Checks if the option identified by $key exists.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $key | string | - | - |
Return values
bool
offsetExists()
¶
Context.php
:
51
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $offset | mixed | - | - |
Return values
bool
offsetGet()
¶
Context.php
:
56
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $offset | mixed | - | - |
offsetSet()
¶
Context.php
:
61
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $offset | mixed | - | - |
| $value | mixed | - | - |
offsetUnset()
¶
Context.php
:
66
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $offset | mixed | - | - |