Skip to content
PHP Ecosystem
Explore

OutputWriter

API reference › Scaffold › Console › OutputWriter

interfacePHPForge\Scaffold\Console\OutputWriter
Sourcesrc/Console/OutputWriter.php
Implemented by 2 types

Writes service messages to standard output or standard error, appending one newline per message.

MethodDescriptionDefined by
writeStderr() abstractWrites $message to the standard error stream followed by a trailing newline.OutputWriter
writeStdout() abstractWrites $message to the standard output stream followed by a trailing newline.OutputWriter
abstract public function writeStderr(string $message): void

Writes $message to the standard error stream followed by a trailing newline.

Parameters

ParameterTypeDescription
$messagestringMessage without a trailing newline; the writer appends one.
abstract public function writeStdout(string $message): void

Writes $message to the standard output stream followed by a trailing newline.

Parameters

ParameterTypeDescription
$messagestringMessage without a trailing newline; the writer appends one.