Output
class Output
Output.
Constants
STANDARD |
Standard output. |
ERROR |
Error output. |
Properties
protected WriterInterface | $standard | Standard writer. | |
protected WriterInterface | $error | Error writer. | |
protected FormatterInterface|null | $formatter | Formatter. | |
protected bool | $hasAnsiSupport | Do we have ANSI support? | |
protected bool | $muted | Is the output muted? |
Methods
Constructor.
Do we have ANSI support?
Returns the formatter.
Mutes the output.
Unmutes the output.
Is the output muted?
Writes string to output.
Writes string to output using the error writer.
Appends newline to string and writes it to output.
Appends newline to string and writes it to output using the error writer.
Clears the screen.
Clears the current line.
Clears n lines.
Details
at line 79
__construct(WriterInterface $standard, WriterInterface $error, FormatterInterface $formatter = null, bool $hasAnsiSupport = null)
Constructor.
at line 102
bool
hasAnsiSupport()
Do we have ANSI support?
at line 112
setFormatter(FormatterInterface $formatter)
Sets the formatter.
at line 122
FormatterInterface|null
getFormatter()
Returns the formatter.
at line 130
mute()
Mutes the output.
at line 138
unmute()
Unmutes the output.
at line 148
bool
isMuted()
Is the output muted?
at line 159
write(string $string, int $writer = Output::STANDARD)
Writes string to output.
at line 186
error(string $string)
Writes string to output using the error writer.
at line 197
writeLn(string $string, int $writer = Output::STANDARD)
Appends newline to string and writes it to output.
at line 207
errorLn(string $string)
Appends newline to string and writes it to output using the error writer.
at line 215
clear()
Clears the screen.
at line 226
clearLine()
Clears the current line.
at line 239
clearLines(int $lines)
Clears n lines.