abstract class OutputStyle implements OutputInterface, StyleInterface
Decorates output to add console style guide helpers.
__construct(OutputInterface $output) | ||
newLine(int $count = 1) Add newline(s). | ||
ProgressBar | createProgressBar(int $max = 0) | |
write(string|iterable $messages, bool $newline = false, $type = self::OUTPUT_NORMAL) Writes a message to the output. | ||
writeln(string|iterable $messages, $type = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the end. | ||
setVerbosity(int $level) Sets the verbosity of the output. | ||
int | getVerbosity() Gets the current verbosity of the output. | |
setDecorated(bool $decorated) Sets the decorated flag. | ||
bool | isDecorated() Gets the decorated flag. | |
setFormatter(OutputFormatterInterface $formatter) | ||
OutputFormatterInterface | getFormatter() Returns current output formatter instance. | |
bool | isQuiet() Returns whether verbosity is quiet (-q). | |
bool | isVerbose() Returns whether verbosity is verbose (-v). | |
bool | isVeryVerbose() Returns whether verbosity is very verbose (-vv). | |
bool | isDebug() Returns whether verbosity is debug (-vvv). | |
getErrorOutput() |
OutputInterface | $output |
Add newline(s).
int | $count | The number of newlines |
int | $max |
ProgressBar |
Writes a message to the output.
string|iterable | $messages | The message as an iterable of strings or a single string |
bool | $newline | Whether to add a newline |
$type |
Writes a message to the output and adds a newline at the end.
string|iterable | $messages | The message as an iterable of strings or a single string |
$type |
Sets the verbosity of the output.
int | $level | The level of verbosity (one of the VERBOSITY constants) |
Gets the current verbosity of the output.
int | The current level of verbosity (one of the VERBOSITY constants) |
Sets the decorated flag.
bool | $decorated | Whether to decorate the messages |
Gets the decorated flag.
bool | true if the output will decorate messages, false otherwise |
OutputFormatterInterface | $formatter |
Returns current output formatter instance.
OutputFormatterInterface |
Returns whether verbosity is quiet (-q).
bool | true if verbosity is set to VERBOSITY_QUIET, false otherwise |
Returns whether verbosity is verbose (-v).
bool | true if verbosity is set to VERBOSITY_VERBOSE, false otherwise |
Returns whether verbosity is very verbose (-vv).
bool | true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise |
Returns whether verbosity is debug (-vvv).
bool | true if verbosity is set to VERBOSITY_DEBUG, false otherwise |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Style/OutputStyle.html