1471. Class

1471.1. Zend\Console\Prompt\AbstractPrompt

1471.1.1. Methods

1471.1.1.1. show

show()

Show a prompt

Return type:void

1471.1.1.2. getLastResponse

getLastResponse()

Return last answer to this prompt.

Return type:mixed

1471.1.1.3. getConsole

getConsole()

Return console adapter to use when showing prompt.

Return type:ConsoleAdapter

1471.1.1.4. setConsole

setConsole()

Set console adapter to use when showing prompt.

Parameters:ConsoleAdapter

1471.1.1.5. prompt

prompt()

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

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

$name = ZendConsolePromptLine::prompt(“Enter your name: ”);
Return type:mixed
Throws :ExceptionBadMethodCallException

Project Versions

Table Of Contents

Previous topic

1470. Class

Next topic

1472. Class

This Page