__construct()
getAllowEmpty()
getAllowedChars()
getConsole()
getEcho()
getIgnoreCase()
getLastResponse()
getPromptText()
prompt()
setAllowEmpty()
setAllowedChars()
setConsole()
setEcho()
setIgnoreCase()
setPromptText()
show()
$allowEmpty
$allowedChars
$console
$echo
$ignoreCase
$lastResponse
$promptText
__construct(string $promptText, string $allowedChars, bool $ignoreCase, bool $allowEmpty, bool $echo)
stringThe prompt text to display in console
stringA list of allowed chars (i.e. "abc12345")
boolIf true, case will be ignored and prompt will always return lower-cased response
boolIs empty response allowed?
boolDisplay the selection after user presses key
getAllowEmpty() : bool
boolgetAllowedChars() : string
stringgetConsole() : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() | 
|---|
getEcho() : bool
boolgetIgnoreCase() : bool
boolgetLastResponse() : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() | 
|---|
mixedgetPromptText() : 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() | 
|---|
\Zend\Console\Exception\BadMethodCallException | 
|---|
mixedsetAllowEmpty(bool $allowEmpty)
bool
setAllowedChars(string $allowedChars)
string
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::setConsole() | 
|---|
setEcho(bool $echo)
bool
setIgnoreCase(bool $ignoreCase)
bool
setPromptText(string $promptText)
string
show() : string
string$allowEmpty : bool
$allowedChars : string
$console : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$console | 
|---|
$echo : bool
$ignoreCase : bool
$lastResponse : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$lastResponse | 
|---|
$promptText : string