PHP Class Webmozart\Console\IO\InputStream\StringInputStream

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends StreamInputStream
Exibir arquivo Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( string $string = '' ) Creates the input stream.
append ( string $string ) Appends a string to the stream.
clear ( ) Clears the contents of the buffer.
set ( string $string ) Sets the string to read from.

Method Details

__construct() public method

Creates the input stream.
public __construct ( string $string = '' )
$string string The string to read from.

append() public method

Appends a string to the stream.
public append ( string $string )
$string string The string to append.

clear() public method

Clears the contents of the buffer.
public clear ( )

set() public method

Sets the string to read from.
public set ( string $string )
$string string The string to read from.