Zend\Console\Prompt\Char::__construct
Ask the user for a single key stroke
Signature
public function __construct([string
$promptText = 'Please hit a key',
[string
$allowedChars = '0123456789abcdefghijklmnopqrstuvwxyz',
[bool
$ignoreCase = true,
[bool
$allowEmpty = false,
[bool
$echo = true]]]]] )
Parameters
$promptText
—
string
- The prompt text to display in console
$allowedChars
—
string
- A list of allowed chars (i.e. "abc12345")
$ignoreCase
—
object
- If true, case will be ignored and prompt will always return lower-cased response
$allowEmpty
—
object
- Is empty response allowed?
$echo
—
object
- Display the selection after user presses key