OutputInterface
interface OutputInterface
OutputInterface is the interface implemented by all Output classes.
Constants
VERBOSITY_QUIET |
|
VERBOSITY_NORMAL |
|
VERBOSITY_VERBOSE |
|
VERBOSITY_VERY_VERBOSE |
|
VERBOSITY_DEBUG |
|
OUTPUT_NORMAL |
|
OUTPUT_RAW |
|
OUTPUT_PLAIN |
|
Methods
Writes a message to the output.
Writes a message to the output and adds a newline at the end.
Sets the verbosity of the output.
Gets the current verbosity of the output.
Returns whether verbosity is quiet (-q).
Returns whether verbosity is verbose (-v).
Returns whether verbosity is very verbose (-vv).
Returns whether verbosity is debug (-vvv).
Sets the decorated flag.
Gets the decorated flag.
Returns current output formatter instance.
Details
at line line 40
write(string|array $messages, bool $newline = false, int $options)
Writes a message to the output.
at line line 48
writeln(string|array $messages, int $options)
Writes a message to the output and adds a newline at the end.
at line line 55
setVerbosity(int $level)
Sets the verbosity of the output.
at line line 62
int
getVerbosity()
Gets the current verbosity of the output.
at line line 69
bool
isQuiet()
Returns whether verbosity is quiet (-q).
at line line 76
bool
isVerbose()
Returns whether verbosity is verbose (-v).
at line line 83
bool
isVeryVerbose()
Returns whether verbosity is very verbose (-vv).
at line line 90
bool
isDebug()
Returns whether verbosity is debug (-vvv).
at line line 97
setDecorated(bool $decorated)
Sets the decorated flag.
at line line 104
bool
isDecorated()
Gets the decorated flag.
at line line 111
setFormatter(OutputFormatterInterface $formatter)
Sets output formatter.
at line line 118
OutputFormatterInterface
getFormatter()
Returns current output formatter instance.