category Zend
package Zend_Console
subpackage Prompt

 Methods

Return console adapter to use when showing prompt.

getConsole() : \Zend\Console\Adapter\AdapterInterface

Return last answer to this prompt.

getLastResponse() : mixed

Returns

mixed

Create an instance of this prompt, show it and return response.

prompt() : mixed

This is a convenience method for creating statically creating prompts, i.e.:

 $name = Zend\Console\Prompt\Line::prompt("Enter your name: ");

Exceptions

\Zend\Console\Exception\BadMethodCallException

Returns

mixed

Set console adapter to use when showing prompt.

setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) 

Show a prompt

show() : void

 Properties

   

$lastResponse

$lastResponse : mixed