Zend\Console\Prompt\Select::__construct
Ask the user to select one of pre-defined options
Signature
public function __construct([string
$promptText = 'Please select one option',
[array
$options = false,
[bool
$allowEmpty = false,
[bool
$echo = false]]]] )
Parameters
$promptText
—
string
- The prompt text to display in console
$options
—
array
- Allowed options
$allowEmpty
—
object
- Allow empty (no) selection?
$echo
—
object
- True to display selected option?
Errors/Exceptions
-
BadMethodCallException
- if no options available