PHP Class Webmozart\Console\IO\BufferedIO

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Console\Api\IO\IO
Show file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( string $inputData = '', Webmozart\Console\Api\Formatter\Formatter $formatter = null ) Creates the I/O.
appendInput ( string $data ) Appends data to the input buffer.
clearErrors ( ) Clears the error output buffer.
clearInput ( ) Clears the input buffer.
clearOutput ( ) Clears the output buffer.
fetchErrors ( ) : string Returns the contents of the error output buffer.
fetchOutput ( ) : string Returns the contents of the output buffer.
setInput ( string $data ) Sets the contents of the input buffer.

Method Details

__construct() public method

Creates the I/O.
public __construct ( string $inputData = '', Webmozart\Console\Api\Formatter\Formatter $formatter = null )
$inputData string The data to return from the input.
$formatter Webmozart\Console\Api\Formatter\Formatter The formatter to use.

appendInput() public method

Appends data to the input buffer.
public appendInput ( string $data )
$data string The input data to append.

clearErrors() public method

Clears the error output buffer.
public clearErrors ( )

clearInput() public method

Clears the input buffer.
public clearInput ( )

clearOutput() public method

Clears the output buffer.
public clearOutput ( )

fetchErrors() public method

Returns the contents of the error output buffer.
public fetchErrors ( ) : string
return string The data of the error output.

fetchOutput() public method

Returns the contents of the output buffer.
public fetchOutput ( ) : string
return string The output data.

setInput() public method

Sets the contents of the input buffer.
public setInput ( string $data )
$data string The input data.