You are here

public function BufferedOutput::fetch 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::fetch()

Empties buffer and returns its content.

Return value

string

1 call to BufferedOutput::fetch()
DummyOutput::getLogs in vendor/symfony/console/Tests/Fixtures/DummyOutput.php

File

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

Class

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

Namespace

Symfony\Component\Console\Output

Code

public function fetch() {
  $content = $this->buffer;
  $this->buffer = '';
  return $content;
}