__construct()
__toString()
env()
getContent()
getEnv()
getMetadata()
getParam()
getParams()
getScriptName()
params()
setContent()
setEnv()
setMetadata()
setParams()
setScriptName()
toString()
$content
$envParams
$metadata
$params
$scriptName
__construct(array $args, array $env)
arraynull
Console arguments. If not supplied, $_SERVER['argv'] will be used
arraynull
Environment data. If not supplied, $_ENV will be used
\Zend\Console\Exception\RuntimeException |
---|
__toString() : string
string
env() : \Zend\Stdlib\Parameters
getContent() : mixed
inherited_from | \Zend\Stdlib\Message::getContent() |
---|
mixed
getEnv(string $name, string $default) : \Zend\Stdlib\Parameters
string
Parameter name
string
(optional) default value in case the parameter does not exist
getMetadata(null | string | int $key, null | mixed $default) : mixed
inherited_from | \Zend\Stdlib\Message::getMetadata() |
---|
nullstringint
nullmixed
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
mixed
getParam(string $name, string $default) : mixed
Shortcut for $request->params()->get()
string
Parameter name
string
(optional) default value in case the parameter does not exist
mixed
getScriptName() : string
string
setContent(mixed $value) : \Zend\Stdlib\Message
inherited_from | \Zend\Stdlib\Message::setContent() |
---|
mixed
setEnv(\Zend\Stdlib\Parameters $env) : \Zend\Console\Request
setMetadata(string | int | array | \Traversable $spec, mixed $value) : \Zend\Stdlib\Message
Non-destructive setting of message metadata; always adds to the metadata, never overwrites the entire metadata container.
inherited_from | \Zend\Stdlib\Message::setMetadata() |
---|
stringintarray\Traversable
mixed
\Zend\Stdlib\Exception\InvalidArgumentException |
---|
setScriptName(string $scriptName)
string
toString() : string
string
$content : string
inherited_from | \Zend\Stdlib\Message::$$content |
---|
$scriptName : string