api/symfony/Component/Console/Question/ConfirmationQuestion.yaml

43 lines
914 B
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
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: []