Abstract Class Symfony\Component\Console\Output\Output

InheritanceSymfony\Component\Console\Output\Output
ImplementsSymfony\Component\Console\Output\OutputInterface
SubclassesSymfony\Component\Console\Output\BufferedOutput, Symfony\Component\Console\Output\ConsoleOutput, Symfony\Component\Console\Output\StreamOutput

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)

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
doWrite() Writes a message to the output. Symfony\Component\Console\Output\Output

Method Details

__construct() public method

Constructor.

public void __construct ( $verbosity self::VERBOSITY_NORMAL, $decorated false, Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter null )
$verbosity int

The verbosity level (one of the VERBOSITY constants in OutputInterface)

$decorated bool

Whether to decorate messages

$formatter Symfony\Component\Console\Formatter\OutputFormatterInterface|null

Output formatter instance (null to use default OutputFormatter)

doWrite() protected abstract method

Writes a message to the output.

protected abstract void doWrite ( $message, $newline )
$message string

A message to write to the output

$newline bool

Whether to add a newline or not

getFormatter() public method

{@inheritdoc}

public void getFormatter ( )
getVerbosity() public method

{@inheritdoc}

public void getVerbosity ( )
isDebug() public method

{@inheritdoc}

public void isDebug ( )
isDecorated() public method

{@inheritdoc}

public void isDecorated ( )
isQuiet() public method

{@inheritdoc}

public void isQuiet ( )
isVerbose() public method

{@inheritdoc}

public void isVerbose ( )
isVeryVerbose() public method

{@inheritdoc}

public void isVeryVerbose ( )
setDecorated() public method

{@inheritdoc}

public void setDecorated ( $decorated )
$decorated
setFormatter() public method

{@inheritdoc}

public void setFormatter ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter )
$formatter
setVerbosity() public method

{@inheritdoc}

public void setVerbosity ( $level )
$level
write() public method

{@inheritdoc}

public void write ( $messages, $newline false, $options self::OUTPUT_NORMAL )
$messages
$newline
$options
writeln() public method

{@inheritdoc}

public void writeln ( $messages, $options self::OUTPUT_NORMAL )
$messages
$options