1475. Class

1475.1. Zend\Console\Prompt\Number

1475.1.1. Methods

1475.1.1.1. __construct

__construct()

Ask the user for a number.

Parameters:
  • string – The prompt text to display in console
  • bool – Is empty response allowed?
  • bool – Are floating (non-decimal) numbers allowed?
  • integer – Minimum value (inclusive)
  • integer – Maximum value (inclusive)

1475.1.1.2. show

show()

Show the prompt to user and return the answer.

Return type:mixed

1475.1.1.3. setAllowEmpty

setAllowEmpty()

@param bool $allowEmpty

1475.1.1.4. getAllowEmpty

getAllowEmpty()

@return bool

1475.1.1.5. setMaxLength

setMaxLength()

@param int $maxLength

1475.1.1.6. getMaxLength

getMaxLength()

@return int

1475.1.1.7. setPromptText

setPromptText()

@param string $promptText

1475.1.1.8. getPromptText

getPromptText()

@return string

1475.1.1.9. setMax

setMax()

@param int $max

1475.1.1.10. getMax

getMax()

@return int

1475.1.1.11. setMin

setMin()

@param int $min

1475.1.1.12. getMin

getMin()

@return int

1475.1.1.13. setAllowFloat

setAllowFloat()

@param bool $allowFloat

1475.1.1.14. getAllowFloat

getAllowFloat()

@return bool