Zend Framework  3.0
Public Member Functions | List of all members
Password Class Reference

Public Member Functions

 __construct ($promptText= 'Password: ', $echo=false)
 Ask the user for a password.
 
 show ()
 Show the prompt to user and return a string.
 
- Public Member Functions inherited from AbstractPrompt
 getLastResponse ()
 Return last answer to this prompt.
 
 getConsole ()
 Return console adapter to use when showing prompt.
 
 setConsole (ConsoleAdapter $adapter)
 Set console adapter to use when showing prompt.
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractPrompt
static prompt ()
 Create an instance of this prompt, show it and return response.
 
- Protected Attributes inherited from AbstractPrompt
 $console
 
 $lastResponse
 

Constructor & Destructor Documentation

__construct (   $promptText = 'Password: ',
  $echo = false 
)

Ask the user for a password.

Parameters
string$promptTextThe prompt text to display in console
bool$echoDisplay the selection after user presses key

Member Function Documentation

show ( )

Show the prompt to user and return a string.

Returns
string

Read characters from console

Implements PromptInterface.