42 lines
914 B
YAML
42 lines
914 B
YAML
name: ConfirmationQuestion
|
|
class_comment: '# * Represents a yes/no question.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com>'
|
|
dependencies: []
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: question
|
|
- name: default
|
|
default: 'true'
|
|
- name: trueAnswerRegex
|
|
default: '''/^y/i'''
|
|
comment: '# * Represents a yes/no question.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com>
|
|
|
|
# */
|
|
|
|
# class ConfirmationQuestion extends Question
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * @param string $question The question to ask to the user
|
|
|
|
# * @param bool $default The default answer to return, true or false
|
|
|
|
# * @param string $trueAnswerRegex A regex to match the "yes" answer'
|
|
- name: getDefaultNormalizer
|
|
visibility: private
|
|
parameters: []
|
|
comment: '# * Returns the default answer normalizer.'
|
|
traits: []
|
|
interfaces: []
|