| Methods |
public
|
__construct(
int|null $verbosity = self::VERBOSITY_NORMAL,
bool $decorated = false,
OutputFormatterInterface|null $formatter = null,
)
Parameters
| $verbosity |
The verbosity level (one of the VERBOSITY constants in OutputInterface)
|
| $decorated |
Whether to decorate messages
|
| $formatter |
Output formatter instance (null to use default OutputFormatter)
|
Overriden by
|
#
|
public
|
setFormatter(OutputFormatterInterface $formatter): void
|
#
|
public
|
getFormatter(): OutputFormatterInterface
Returns current output formatter instance.
Returns current output formatter instance.
Implements
|
#
|
public
|
setDecorated(bool $decorated): void
Sets the decorated flag.
|
#
|
public
|
isDecorated(): bool
Gets the decorated flag.
|
#
|
public
|
setVerbosity(int $level): void
Sets the verbosity of the output.
Sets the verbosity of the output.
Implements
|
#
|
public
|
getVerbosity(): int
Gets the current verbosity of the output.
Gets the current verbosity of the output.
Implements
|
#
|
public
|
isQuiet(): bool
Returns whether verbosity is quiet (-q).
Returns whether verbosity is quiet (-q).
Implements
|
#
|
public
|
isVerbose(): bool
Returns whether verbosity is verbose (-v).
Returns whether verbosity is verbose (-v).
Implements
|
#
|
public
|
isVeryVerbose(): bool
Returns whether verbosity is very verbose (-vv).
Returns whether verbosity is very verbose (-vv).
Implements
|
#
|
public
|
isDebug(): bool
Returns whether verbosity is debug (-vvv).
Returns whether verbosity is debug (-vvv).
Implements
|
#
|
public
|
writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL): void
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
| $options |
A bitmask of options (one of the OUTPUT or VERBOSITY constants),
0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
|
Implements
|
#
|
public
|
write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL): void
Writes a message to the output.
Writes a message to the output.
Parameters
| $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
|
Implements
|
#
|
abstract
protected
|
doWrite(string $message, bool $newline): void
Writes a message to the output.
Writes a message to the output.
Implemented by
|
#
|