__construct()
getAllowEmpty()
getConsole()
getLastResponse()
getMaxLength()
getPromptText()
prompt()
setAllowEmpty()
setConsole()
setMaxLength()
setPromptText()
show()
$allowEmpty
$console
$lastResponse
$maxLength
$promptText
__construct(string $promptText, bool $allowEmpty, int $maxLength)
stringThe prompt text to display in console
boolIs empty response allowed?
intMaximum response length
getAllowEmpty() : bool
boolgetConsole() : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() |
|---|
getLastResponse() : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
|---|
mixedgetMaxLength() : int
intgetPromptText() : string
stringprompt() : mixed
This is a convenience method for creating statically creating prompts, i.e.:
$name = Zend\Console\Prompt\Line::prompt("Enter your name: ");
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::prompt() |
|---|
\Zend\Console\Exception\BadMethodCallException |
|---|
mixedsetAllowEmpty(bool $allowEmpty)
bool
setConsole(\Zend\Console\Adapter\AdapterInterface $adapter) : void
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::setConsole() |
|---|
setMaxLength(int $maxLength)
int
setPromptText(string $promptText)
string
show() : string
string$allowEmpty : bool
$console : \Zend\Console\Adapter\AdapterInterface
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$console |
|---|
$lastResponse : mixed
| inherited_from | \Zend\Console\Prompt\AbstractPrompt::$$lastResponse |
|---|
$maxLength : int
$promptText : string