Methods |
public
|
write(string|iterable $messages, bool $newline = false, int $options = 0)
Writes a message to the output.
Writes a message to the output.
Parameters
$messages |
The message as an iterable of strings or a single string
|
$newline |
Whether to add a newline
|
$options |
A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
|
Implemented by
|
#
|
public
|
writeln(string|iterable $messages, int $options = 0)
Writes a message to the output and adds a newline at the end.
Writes a message to the output and adds a newline at the end.
Parameters
$messages |
The message as an iterable of strings or a single string
|
$options |
A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
|
Implemented by
|
#
|
public
|
setVerbosity(int $level)
Sets the verbosity of the output.
Sets the verbosity of the output.
Implemented by
|
#
|
public
|
getVerbosity(): int
Gets the current verbosity of the output.
Gets the current verbosity of the output.
Implemented by
|
#
|
public
|
isQuiet(): bool
Returns whether verbosity is quiet (-q).
Returns whether verbosity is quiet (-q).
Implemented by
|
#
|
public
|
isVerbose(): bool
Returns whether verbosity is verbose (-v).
Returns whether verbosity is verbose (-v).
Implemented by
|
#
|
public
|
isVeryVerbose(): bool
Returns whether verbosity is very verbose (-vv).
Returns whether verbosity is very verbose (-vv).
Implemented by
|
#
|
public
|
isDebug(): bool
Returns whether verbosity is debug (-vvv).
Returns whether verbosity is debug (-vvv).
Implemented by
|
#
|
public
|
setDecorated(bool $decorated)
Sets the decorated flag.
|
#
|
public
|
isDecorated(): bool
Gets the decorated flag.
|
#
|
public
|
setFormatter(OutputFormatterInterface $formatter)
|
#
|
public
|
getFormatter(): OutputFormatterInterface
Returns current output formatter instance.
Returns current output formatter instance.
Implemented by
|
#
|