Method | Description | |
---|---|---|
__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 |
return | void |
public getOutputter ( ) : Phrozn\Outputter | ||
return | Phrozn\Outputter |
public setHandle ( resource $handle ) : |
||
$handle | resource | Resource pointer |
return |
public setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Has\Outputter | ||
$outputter | Phrozn\Outputter | Outputter instance |
return | Phrozn\Has\Outputter |