BufferedConsoleOutput
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
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.
at line 38
protected void
doWrite(string $message, bool $newline)
Write to the output buffer.
at line 50
void
writeDirectly(string $message)
Write output directly, bypassing newline capture.
at line 19
string
fetch()
Empties the buffer and returns its content.
at line 30
string
content()
Return the content of the buffer.