__construct()
getAllowEmpty()
getConsole()
getLastResponse()
getMaxLength()
getPromptText()
prompt()
setAllowEmpty()
setConsole()
setMaxLength()
setPromptText()
show()
$allowEmpty
$console
$lastResponse
$maxLength
$promptText
__construct(string $promptText, bool $allowEmpty, int $maxLength)
string
The prompt text to display in console
bool
Is empty response allowed?
int
Maximum response length
getAllowEmpty() : bool
bool
getConsole() : \Zend\Console\Adapter\AdapterInterface
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getConsole() |
---|
getLastResponse() : mixed
inherited_from | \Zend\Console\Prompt\AbstractPrompt::getLastResponse() |
---|
mixed
getMaxLength() : int
int
getPromptText() : string
string
prompt() : 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 |
---|
mixed
setAllowEmpty(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