Interface PromptInterface

Summary

Fully Qualified Name: Zend\Console\Prompt\PromptInterface

Description

Methods

Name Description Defined By
getConsole() Return console adapter to use when showing prompt. PromptInterface
getLastResponse() Return last answer to this prompt. PromptInterface
setConsole() Set console adapter to use when showing prompt. PromptInterface
show() Show the prompt to user and return the answer. PromptInterface

Method Details

getConsole()

Return console adapter to use when showing prompt.

Returns: \ConsoleAdapter

getLastResponse()

Return last answer to this prompt.

Returns: mixed

setConsole()

Set console adapter to use when showing prompt.

Parameter Name Type Description
$adapter \ConsoleAdapter

Returns: void

show()

Show the prompt to user and return the answer.

Returns: mixed

Top