Метод | Описание | |
---|---|---|
__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 |