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 Environment | $environment | Environment. | |
protected bool | $muted | Is the output muted? |
Methods
Constructor.
Returns the chosen writer.
Returns the formatter.
Returns the environment.
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.
Dumps a value to the output.
Clears the screen.
Clears the current line.
Clears n lines.
Details
at line 78
__construct(WriterInterface $standard, WriterInterface $error, FormatterInterface|null $formatter = null, Environment|null $environment = null)
Constructor.
at line 95
WriterInterface
getWriter(int $writer = Output::STANDARD)
Returns the chosen writer.
at line 105
setFormatter(FormatterInterface $formatter)
Sets the formatter.
at line 115
FormatterInterface|null
getFormatter()
Returns the formatter.
at line 125
Environment
getEnvironment()
Returns the environment.
at line 133
mute()
Mutes the output.
at line 141
unmute()
Unmutes the output.
at line 151
bool
isMuted()
Is the output muted?
at line 162
write(string $string, int $writer = Output::STANDARD)
Writes string to output.
at line 189
error(string $string)
Writes string to output using the error writer.
at line 200
writeLn(string $string, int $writer = Output::STANDARD)
Appends newline to string and writes it to output.
at line 210
errorLn(string $string)
Appends newline to string and writes it to output using the error writer.
at line 221
dump(mixed $value, int $writer = Output::STANDARD)
Dumps a value to the output.
at line 229
clear()
Clears the screen.
at line 240
clearLine()
Clears the current line.
at line 253
clearLines(int $lines)
Clears n lines.