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) : void

Show the prompt to user and return the answer.

show() : mixed
Inherited

inherited_from \Zend\Console\Prompt\PromptInterface::show()

Returns

mixed

 Properties

   

$lastResponse

$lastResponse : mixed