CommandOutput
final class CommandOutput (View source)
Writes command output to separate standard-output and standard-error streams.
Methods
Creates output backed by writable stream resources.
Writes a message to standard output without adding a line ending.
Writes a message followed by the platform line ending to standard output.
Writes a message to standard error without adding a line ending.
Writes a message followed by the platform line ending to standard error.
Details
__construct
__construct(mixed $stdout, mixed $stderr)
Creates output backed by writable stream resources.
write
void
write(string $message)
Writes a message to standard output without adding a line ending.
writeln
void
writeln(string $message = '')
Writes a message followed by the platform line ending to standard output.
error
void
error(string $message)
Writes a message to standard error without adding a line ending.
errorln
void
errorln(string $message = '')
Writes a message followed by the platform line ending to standard error.