4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Output;
15 * @author Jean-François Simon <contact@jfsimon.fr>
17 class BufferedOutput extends Output
22 * Empties buffer and returns its content.
26 public function fetch()
28 $content = $this->buffer;
37 protected function doWrite($message, $newline)
39 $this->buffer .= $message;
42 $this->buffer .= PHP_EOL;