__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, integer $min, integer $max)
stringThe prompt text to display in console
boolIs empty response allowed?
boolAre floating (non-decimal) numbers allowed?
integerMinimum value (inclusive)
integerMaximum value (inclusive)
getAllowEmpty() : bool
boolgetAllowFloat() : bool
boolgetConsole() : \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() |
mixedgetMax() : int
intgetMaxLength() : int
intgetMin() : int
intgetPromptText() : string
stringprompt() : 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 |
|---|
mixedsetAllowEmpty(bool $allowEmpty)
bool
setAllowFloat(bool $allowFloat)
bool
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter)
| 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