class BufferedOutput extends Output
Methods
__construct(int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) Constructor. | from Output | |
setFormatter(OutputFormatterInterface $formatter) Sets output formatter. | from Output | |
OutputFormatterInterface | getFormatter() Returns current output formatter instance. | from Output |
setDecorated(bool $decorated) Sets the decorated flag. | from Output | |
bool | isDecorated() Gets the decorated flag. | from Output |
setVerbosity(int $level) Sets the verbosity of the output. | from Output | |
int | getVerbosity() Gets the current verbosity of the output. | from Output |
isQuiet() | from Output | |
isVerbose() | from Output | |
isVeryVerbose() | from Output | |
isDebug() | from Output | |
writeln(string|array $messages, int $type = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the end. | from Output | |
write(string|array $messages, bool $newline = false, int $type = self::OUTPUT_NORMAL) Writes a message to the output. | from Output | |
string | fetch() Empties buffer and returns its content. |
Details
__construct(int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null)
Constructor.
setFormatter(OutputFormatterInterface $formatter)
Sets output formatter.
OutputFormatterInterface getFormatter()
Returns current output formatter instance.
setDecorated(bool $decorated)
Sets the decorated flag.
bool isDecorated()
Gets the decorated flag.
setVerbosity(int $level)
Sets the verbosity of the output.
int getVerbosity()
Gets the current verbosity of the output.
isQuiet()
isVerbose()
isVeryVerbose()
isDebug()
writeln(string|array $messages, int $type = self::OUTPUT_NORMAL)
Writes a message to the output and adds a newline at the end.
write(string|array $messages, bool $newline = false, int $type = self::OUTPUT_NORMAL)
Writes a message to the output.
string fetch()
Empties buffer and returns its content.
Please login to continue.