| Fully Qualified Name: | Laminas\Stdlib\Parameters |
| Extends: | ArrayObject |
| Implements: | ParametersInterface |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | Parameters |
| fromArray() | Populate from native PHP array | Parameters |
| fromString() | Populate from query string | Parameters |
| get() | Parameters | |
| offsetGet() | Retrieve by key | Parameters |
| set() | Parameters | |
| toArray() | Serialize to native PHP array | Parameters |
| toString() | Serialize to query string | Parameters |
Constructor
Enforces that we have an array, and enforces parameter access to array elements.
| Parameter Name | Type | Description |
|---|---|---|
| $values | array |
Returns:
Populate from native PHP array
| Parameter Name | Type | Description |
|---|---|---|
| $values | array |
Returns: void
Populate from query string
| Parameter Name | Type | Description |
|---|---|---|
| $string | string |
Returns: void
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $default | mixed | optional |
Returns: mixed
Retrieve by key
Returns null if the key does not exist.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: mixed
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
Returns: \Parameters
Serialize to native PHP array
Returns: array
Serialize to query string
Returns: string