Fully Qualified Name: | Zend\Console\Prompt\Number |
Extends: | Line |
Name | Description | Defined By |
---|---|---|
__construct() | Ask the user for a number. | Number |
getAllowEmpty() | Number | |
getAllowFloat() | Number | |
getConsole() | Return console adapter to use when showing prompt. | AbstractPrompt |
getLastResponse() | Return last answer to this prompt. | AbstractPrompt |
getMax() | Number | |
getMaxLength() | Number | |
getMin() | Number | |
getPromptText() | Number | |
prompt() | Create an instance of this prompt, show it and return response. | AbstractPrompt |
setAllowEmpty() | Number | |
setAllowFloat() | Number | |
setConsole() | Set console adapter to use when showing prompt. | AbstractPrompt |
setMax() | Number | |
setMaxLength() | Number | |
setMin() | Number | |
setPromptText() | Number | |
show() | Show the prompt to user and return the answer. | Number |
Ask the user for a number.
Parameter Name | Type | Description |
---|---|---|
$promptText | string | The |
$allowEmpty | bool | Is |
$allowFloat | bool | Are |
$min | int | Minimum |
$max | int | Maximum |
Returns:
Returns: bool
Returns: bool
Return console adapter to use when showing prompt.
Returns: \ConsoleAdapter
Return last answer to this prompt.
Returns: mixed
Returns: int
Returns: int
Returns: int
Returns: string
Create an instance of this prompt, show it and return response.
This is a convenience method for creating statically creating prompts, i.e.:
$name = Zend\Console\Prompt\Line::prompt("Enter your name: ");
Returns: mixed
Parameter Name | Type | Description |
---|---|---|
$allowEmpty | bool |
Returns:
Parameter Name | Type | Description |
---|---|---|
$allowFloat | bool |
Returns:
Set console adapter to use when showing prompt.
Parameter Name | Type | Description |
---|---|---|
$adapter | \ConsoleAdapter |
Returns:
Parameter Name | Type | Description |
---|---|---|
$max | int |
Returns:
Parameter Name | Type | Description |
---|---|---|
$maxLength | int |
Returns:
Parameter Name | Type | Description |
---|---|---|
$min | int |
Returns:
Parameter Name | Type | Description |
---|---|---|
$promptText | string |
Returns:
Show the prompt to user and return the answer.
Returns: mixed