메소드 | 설명 | |
---|---|---|
__construct ( resource $handle = null, $outputter = null ) : void | Setup reader | |
__destruct ( ) | ||
getHandle ( ) : resource | Get input handle | |
getOutputter ( ) : Phrozn\Outputter | Get outputter instance | |
readLine ( string $prompt ) : string | Get line from standard input | |
setHandle ( resource $handle ) : |
Set input handle | |
setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Has\Outputter | Set outputter |
public __construct ( resource $handle = null, $outputter = null ) : void | ||
$handle | resource | STDIN if not set, parametrized for flexibility during testing |
리턴 | void |
public getOutputter ( ) : Phrozn\Outputter | ||
리턴 | Phrozn\Outputter |
public setHandle ( resource $handle ) : |
||
$handle | resource | Resource pointer |
리턴 |
public setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Has\Outputter | ||
$outputter | Phrozn\Outputter | Outputter instance |
리턴 | Phrozn\Has\Outputter |