class BufferedConsoleOutput extends ConsoleOutput

Properties

protected int $newLinesWritten

How many new lines were written by the last output.

from  ConsoleOutput
protected string $buffer

The output buffer.

Methods

int
newLinesWritten()

How many new lines were written by the last output.

void
doWrite(string $message, bool $newline)

Write to the output buffer.

void
writeDirectly(string $message)

Write output directly, bypassing newline capture.

string
fetch()

Empties the buffer and returns its content.

string
content()

Return the content of the buffer.

Details

in ConsoleOutput at line 21
int newLinesWritten()

How many new lines were written by the last output.

Return Value

int

at line 38
protected void doWrite(string $message, bool $newline)

Write to the output buffer.

Parameters

string $message
bool $newline

Return Value

void

at line 50
void writeDirectly(string $message)

Write output directly, bypassing newline capture.

Parameters

string $message

Return Value

void

at line 19
string fetch()

Empties the buffer and returns its content.

Return Value

string

at line 30
string content()

Return the content of the buffer.

Return Value

string