PHP 클래스 think\console\output\question\Confirmation

상속: extends think\console\output\Question
파일 보기 프로젝트 열기: top-think/framework

공개 메소드들

메소드 설명
__construct ( string $question, boolean $default = true, string $trueAnswerRegex = '/^y/i' ) 构造方法

비공개 메소드들

메소드 설명
getDefaultNormalizer ( ) : callable 获取默认的答案回调

메소드 상세

__construct() 공개 메소드

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