think\console\output\question\Confirmation::__construct PHP Метод

__construct() публичный Метод

构造方法
public __construct ( string $question, boolean $default = true, string $trueAnswerRegex = '/^y/i' )
$question string 问题
$default boolean 默认答案
$trueAnswerRegex string 验证正则
    public function __construct($question, $default = true, $trueAnswerRegex = '/^y/i')
    {
        parent::__construct($question, (bool) $default);
        $this->trueAnswerRegex = $trueAnswerRegex;
        $this->setNormalizer($this->getDefaultNormalizer());
    }