Zend\Console\Prompt\Number::__construct
Ask the user for a number.
Signature
public function __construct([string
$promptText = 'Please enter a number: ',
[bool
$allowEmpty = false,
[bool
$allowFloat = false,
[int
$min = null,
[int
$max = null]]]]] )
Parameters
$promptText
—
string
- The prompt text to display in console
$allowEmpty
—
object
- Is empty response allowed?
$allowFloat
—
object
- Are floating (non-decimal) numbers allowed?
$min
—
int
- Minimum value (inclusive)
$max
—
int
- Maximum value (inclusive)