Methods
Ask the user for a password
__construct(string $promptText, bool $echo) 
Parameters
$promptText
stringThe prompt text to display in console
 
$echo
boolDisplay the selection after user presses key
 
  
 
Return last answer to this prompt.
getLastResponse() : mixed
Inherited
| inherited_from | 
\Zend\Console\Prompt\AbstractPrompt::getLastResponse() | 
Returns
mixed
  
 
Create an instance of this prompt, show it and return response.
prompt() : mixed
Inherited
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() | 
Exceptions
Returns
mixed
  
 
Set console adapter to use when showing prompt.
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
Inherited
| inherited_from | 
\Zend\Console\Prompt\AbstractPrompt::setConsole() | 
Parameters
  
 
Show the prompt to user and return a string.
show() : string
 
 Properties
 
 
$lastResponse
$lastResponse : mixed
Inherited
| inherited_from | 
\Zend\Console\Prompt\AbstractPrompt::$$lastResponse | 
  
 
 
 
$promptText
$promptText : string