PHP Class Matthias\SymfonyConsoleForm\Console\Helper\Question\AlwaysReturnKeyOfChoiceQuestion

Inheritance: extends Symfony\Component\Console\Question\ChoiceQuestion
显示文件 Open project: matthiasnoback/symfony-console-form Class Usage Examples

Public Methods

Method Description
__construct ( string $question, array $choiceViews, mixed $default = null )
getValidator ( ) : callable
setErrorMessage ( string $errorMessage )
setMultiselect ( boolean $multiselect )

Private Methods

Method Description
assertFlatChoiceViewsArray ( array $choiceViews )
prepareAutocompleteValues ( ) : array
prepareChoices ( ) : array
resolveChoiceViewValue ( string $selectedValue ) : string

Method Details

__construct() public method

public __construct ( string $question, array $choiceViews, mixed $default = null )
$question string The question to ask to the user.
$choiceViews array
$default mixed The default answer to return.

getValidator() public method

public getValidator ( ) : callable
return callable

setErrorMessage() public method

public setErrorMessage ( string $errorMessage )
$errorMessage string

setMultiselect() public method

public setMultiselect ( boolean $multiselect )
$multiselect boolean