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 80
__construct(WriterInterface $standard, WriterInterface $error, FormatterInterface|null $formatter = null, Environment|null $environment = null)
Constructor.
at line 97
WriterInterface
getWriter(int $writer = Output::STANDARD)
Returns the chosen writer.
at line 107
setFormatter(FormatterInterface $formatter)
Sets the formatter.
at line 117
FormatterInterface|null
getFormatter()
Returns the formatter.
at line 127
Environment
getEnvironment()
Returns the environment.
at line 135
mute()
Mutes the output.
at line 143
unmute()
Unmutes the output.
at line 153
bool
isMuted()
Is the output muted?
at line 164
write(string $string, int $writer = Output::STANDARD)
Writes string to output.
at line 191
error(string $string)
Writes string to output using the error writer.
at line 202
writeLn(string $string, int $writer = Output::STANDARD)
Appends newline to string and writes it to output.
at line 212
errorLn(string $string)
Appends newline to string and writes it to output using the error writer.
at line 224
void
dump(mixed $value, int $writer = Output::STANDARD)
Dumps a value to the output.
at line 232
clear()
Clears the screen.
at line 243
clearLine()
Clears the current line.
at line 256
clearLines(int $lines)
Clears n lines.