OutputStyle

class OutputStyle implements OutputInterface, StyleInterface Decorates output to add console style guide helpers. Methods __construct(OutputInterface $output) newLine(int $count = 1) Add newline(s). ProgressBar createProgressBar(int $max) write(string|array $messages, bool $newline = false, $type = self::OUTPUT_NORMAL) Writes a message to the output. writeln(string|array $messages, $type = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the

OutputInterface::writeln()

writeln(string|array $messages, int $options) Writes a message to the output and adds a newline at the end. Parameters string|array $messages The message as an array of lines of a single string int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUTNORMAL | self::VERBOSITYNORMAL

OutputInterface::write()

write(string|array $messages, bool $newline = false, int $options) Writes a message to the output. Parameters string|array $messages The message as an array of lines or a single string bool $newline Whether to add a newline int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUTNORMAL | self::VERBOSITYNORMAL

OutputInterface::setVerbosity()

setVerbosity(int $level) Sets the verbosity of the output. Parameters int $level The level of verbosity (one of the VERBOSITY constants)

OutputInterface::setFormatter()

setFormatter(OutputFormatterInterface $formatter) Sets output formatter. Parameters OutputFormatterInterface $formatter

OutputInterface::setDecorated()

setDecorated(bool $decorated) Sets the decorated flag. Parameters bool $decorated Whether to decorate the messages

OutputInterface::isVeryVerbose()

bool isVeryVerbose() Returns whether verbosity is very verbose (-vv). Return Value bool true if verbosity is set to VERBOSITYVERYVERBOSE, false otherwise

OutputInterface::isVerbose()

bool isVerbose() Returns whether verbosity is verbose (-v). Return Value bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise

OutputInterface::isQuiet()

bool isQuiet() Returns whether verbosity is quiet (-q). Return Value bool true if verbosity is set to VERBOSITY_QUIET, false otherwise

OutputInterface::isDecorated()

bool isDecorated() Gets the decorated flag. Return Value bool true if the output will decorate messages, false otherwise