PHP Class think\console\output\Ask

Exibir arquivo Open project: top-think/framework Class Usage Examples

Protected Properties

Property Type Description
$input think\console\Input
$output think\console\Output
$question Question

Public Methods

Method Description
__construct ( Input $input, Output $output, Question $question )
run ( )

Protected Methods

Method Description
doAsk ( )
getHiddenResponse ( $inputStream )
validateAttempts ( $interviewer )
writePrompt ( ) 显示问题的提示信息

Private Methods

Method Description
autocomplete ( $inputStream )
getShell ( )
hasSttyAvailable ( )

Method Details

__construct() public method

public __construct ( Input $input, Output $output, Question $question )
$input think\console\Input
$output think\console\Output
$question Question

doAsk() protected method

protected doAsk ( )

getHiddenResponse() protected method

protected getHiddenResponse ( $inputStream )

run() public method

public run ( )

validateAttempts() protected method

protected validateAttempts ( $interviewer )

writePrompt() protected method

显示问题的提示信息
protected writePrompt ( )

Property Details

$input protected_oe property

protected Input,think\console $input
return think\console\Input

$output protected_oe property

protected Output,think\console $output
return think\console\Output

$question protected_oe property

protected Question,think\console\output $question
return Question