PHP Class think\console\output\question\Confirmation

Inheritance: extends think\console\output\Question
Show file Open project: top-think/framework

Public Methods

Method Description
__construct ( string $question, boolean $default = true, string $trueAnswerRegex = '/^y/i' ) 构造方法

Private Methods

Method Description
getDefaultNormalizer ( ) : callable 获取默认的答案回调

Method Details

__construct() public method

构造方法
public __construct ( string $question, boolean $default = true, string $trueAnswerRegex = '/^y/i' )
$question string 问题
$default boolean 默认答案
$trueAnswerRegex string 验证正则