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 = 32 self::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 )
 
public setFormatter ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter )
 
public setVerbosity ( int $level )
 
public write ( iterable | string $messages , bool $newline = false , int $options = 1 self::OUTPUT_NORMAL)
 
public writeln ( iterable | string $messages , int $options = 1 self::OUTPUT_NORMAL)
 
Methods
protected abstract doWrite ( string $message , bool $newline )
 

Writes a message to the output.

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