You are here

class BufferedOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Output/BufferedOutput.php \Symfony\Component\Console\Output\BufferedOutput

@author Jean-François Simon <contact@jfsimon.fr>

Hierarchy

Expanded class hierarchy of BufferedOutput

7 files declare their use of BufferedOutput
AbstractDescriptorTest.php in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
Application.php in vendor/symfony/console/Application.php
Command.php in vendor/symfony/console/Command/Command.php
DummyOutput.php in vendor/symfony/console/Tests/Fixtures/DummyOutput.php
InputDefinition.php in vendor/symfony/console/Input/InputDefinition.php

... See full list

File

vendor/symfony/console/Output/BufferedOutput.php, line 17

Namespace

Symfony\Component\Console\Output
View source
class BufferedOutput extends Output {

  /**
   * @var string
   */
  private $buffer = '';

  /**
   * Empties buffer and returns its content.
   *
   * @return string
   */
  public function fetch() {
    $content = $this->buffer;
    $this->buffer = '';
    return $content;
  }

  /**
   * {@inheritdoc}
   */
  protected function doWrite($message, $newline) {
    $this->buffer .= $message;
    if ($newline) {
      $this->buffer .= "\n";
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BufferedOutput::$buffer private property
BufferedOutput::doWrite protected function Writes a message to the output. Overrides Output::doWrite
BufferedOutput::fetch public function Empties buffer and returns its content.
Output::$formatter private property
Output::$verbosity private property
Output::getFormatter public function Returns current output formatter instance. Overrides OutputInterface::getFormatter
Output::getVerbosity public function Gets the current verbosity of the output. Overrides OutputInterface::getVerbosity
Output::isDebug public function
Output::isDecorated public function Gets the decorated flag. Overrides OutputInterface::isDecorated
Output::isQuiet public function
Output::isVerbose public function
Output::isVeryVerbose public function
Output::setDecorated public function Sets the decorated flag. Overrides OutputInterface::setDecorated 1
Output::setFormatter public function Sets output formatter. Overrides OutputInterface::setFormatter 1
Output::setVerbosity public function Sets the verbosity of the output. Overrides OutputInterface::setVerbosity 1
Output::write public function Writes a message to the output. Overrides OutputInterface::write
Output::writeln public function Writes a message to the output and adds a newline at the end. Overrides OutputInterface::writeln
Output::__construct public function Constructor. 1
OutputInterface::OUTPUT_NORMAL constant
OutputInterface::OUTPUT_PLAIN constant
OutputInterface::OUTPUT_RAW constant
OutputInterface::VERBOSITY_DEBUG constant
OutputInterface::VERBOSITY_NORMAL constant
OutputInterface::VERBOSITY_QUIET constant
OutputInterface::VERBOSITY_VERBOSE constant
OutputInterface::VERBOSITY_VERY_VERBOSE constant