__construct()
getAllowEmpty()
getAllowFloat()
getConsole()
getLastResponse()
getMax()
getMaxLength()
getMin()
getPromptText()
prompt()
setAllowEmpty()
setAllowFloat()
setConsole()
setMax()
setMaxLength()
setMin()
setPromptText()
show()
$allowEmpty
$allowFloat
$console
$lastResponse
$max
$maxLength
$min
$promptText
__construct(string $promptText, bool $allowEmpty, bool $allowFloat, int $min, int $max)
string
The prompt text to display in console
bool
Is empty response allowed?
bool
Are floating (non-decimal) numbers allowed?
int
Minimum value (inclusive)
int
Maximum value (inclusive)
getAllowEmpty() : bool
bool
getAllowFloat() : bool
bool
getConsole() : \Zend\Console\Adapter\AdapterInterface
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() |
---|---|
inherited_from | \Zend\Console\Prompt\Line::getConsole() |
getLastResponse() : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
---|---|
inherited_from | \Zend\Console\Prompt\Line::getLastResponse() |
mixed
getMax() : int
int
getMaxLength() : int
int
getMin() : int
int
getPromptText() : string
string
prompt() : mixed
This is a convenience method for creating statically creating prompts, i.e.:
$name = Zend\Console\Prompt\Line::prompt("Enter your name: ");
inherited_from | \Zend\Console\Prompt\AbstractPrompt::prompt() |
---|---|
inherited_from | \Zend\Console\Prompt\Line::prompt() |
\Zend\Console\Exception\BadMethodCallException |
---|
mixed
setAllowEmpty(bool $allowEmpty)
bool
setAllowFloat(bool $allowFloat)
bool
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
inherited_from | \Zend\Console\Prompt\AbstractPrompt::setConsole() |
---|---|
inherited_from | \Zend\Console\Prompt\Line::setConsole() |
setMax(int $max)
int
setMaxLength(int $maxLength)
int
setMin(int $min)
int
setPromptText(string $promptText)
string
show() : mixed
mixed
$allowEmpty : bool
inherited_from | \Zend\Console\Prompt\Line::$$allowEmpty |
---|
$allowFloat : bool
$console : \Zend\Console\Adapter\AdapterInterface
inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$console |
---|---|
inherited_from | \Zend\Console\Prompt\Line::$$console |
$lastResponse : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$lastResponse |
---|---|
inherited_from | \Zend\Console\Prompt\Line::$$lastResponse |
$max : int
$maxLength : int
inherited_from | \Zend\Console\Prompt\Line::$$maxLength |
---|
$min : int
$promptText : string