Copied!

Base class for output classes.

There are five levels of verbosity:

  • normal: no option passed (normal output)
  • verbose: -v (more output)
  • very verbose: -vv (highly extended output)
  • debug: -vvv (all debug output)
  • quiet: -q (no output)
Abstract
Constants
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_NORMAL = 1
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_PLAIN = 4
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_RAW = 2
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_DEBUG = 256
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL = 32
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_QUIET = 16
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERBOSE = 64
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERY_VERBOSE = 128
Methods
public __construct(?int $verbosity = 32self::VERBOSITY_NORMAL, bool $decorated = false, ?Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter = NULL)
 
  • param int|null $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
  • param bool $decorated Whether to decorate messages
  • param \OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
public getFormatter() : Symfony\Component\Console\Formatter\OutputFormatterInterface
public getVerbosity() : int
public isDebug() : bool
public isDecorated() : bool
public isQuiet() : bool
public isVerbose() : bool
public isVeryVerbose() : bool
public setDecorated(bool $decorated) : void
public setFormatter(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter) : void
public setVerbosity(int $level) : void
public write(Traversable|array|string $messages, bool $newline = false, int $options = 1self::OUTPUT_NORMAL) : void
public writeln(Traversable|array|string $messages, int $options = 1self::OUTPUT_NORMAL) : void
Methods
protected abstract doWrite(string $message, bool $newline) : void
 

Writes a message to the output.

Properties
private Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter
private int $verbosity
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration