PHP Class think\console\output\question\Confirmation

Inheritance: extends think\console\output\Question
Afficher le fichier Open project: top-think/framework

Méthodes publiques

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

Private Methods

Méthode Description
getDefaultNormalizer ( ) : callable 获取默认的答案回调

Method Details

__construct() public méthode

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