Fully Qualified Name: | Zend\Console\Request |
Extends: | Message |
Implements: | RequestInterface |
Name | Description | Defined By |
---|---|---|
__construct() | Create a new CLI request | Request |
__toString() | Allow PHP casting of this object | Request |
env() | Return the parameter container responsible for env parameters | Request |
getContent() | Get message content | Message |
getEnv() | Return a single parameter container responsible for env parameters | Request |
getMetadata() | Retrieve all metadata or a single metadatum as specified by key | Message |
getParam() | Return a single parameter. | Request |
getParams() | Return the container responsible for parameters | Request |
getScriptName() | Request | |
params() | Return the container responsible for parameters | Request |
setContent() | Set message content | Message |
setEnv() | Provide an alternate Parameter Container implementation for env parameters in this object, (this is NOT the primary API for value setting, for that see env()) | Request |
setMetadata() | Set message metadata | Message |
setParams() | Exchange parameters object | Request |
setScriptName() | Request | |
toString() | Request |
Create a new CLI request
Parameter Name | Type | Description |
---|---|---|
$args | array|null | Console |
$env | array|null | Environment |
Returns:
Allow PHP casting of this object
Returns: string
Return the parameter container responsible for env parameters
Returns: \Zend\Stdlib\Parameters
Get message content
Returns: mixed
Return a single parameter container responsible for env parameters
Parameter Name | Type | Description |
---|---|---|
$name | string | Parameter |
$default | string | (optional) |
Returns: \Zend\Stdlib\Parameters
Retrieve all metadata or a single metadatum as specified by key
Parameter Name | Type | Description |
---|---|---|
$key | null|string|int | |
$default | null|mixed |
Returns: mixed
Return a single parameter.
Shortcut for $request->params()->get()
Parameter Name | Type | Description |
---|---|---|
$name | string | Parameter |
$default | string | (optional) |
Returns: mixed
Return the container responsible for parameters
Returns: \Zend\Stdlib\Parameters
Returns: string
Return the container responsible for parameters
Returns: \Zend\Stdlib\Parameters
Set message content
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: \Message
Provide an alternate Parameter Container implementation for env parameters in this object, (this is NOT the primary API for value setting, for that see env())
Parameter Name | Type | Description |
---|---|---|
$env | \Zend\Stdlib\Parameters |
Returns: \Zend\Console\Request
Set message metadata
Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container.
Parameter Name | Type | Description |
---|---|---|
$spec | string|int|array|\Traversable | |
$value | mixed |
Returns: \Message
Exchange parameters object
Parameter Name | Type | Description |
---|---|---|
$params | \Zend\Stdlib\Parameters |
Returns: \Request
Parameter Name | Type | Description |
---|---|---|
$scriptName | string |
Returns:
Returns: string