/** * Flush the contents of the writer * @param $resetAfterwards Reset the writer contents after flushing? * @return string The writer contents */ public function flush($resetAfterwards = true) { if ($this->writer instanceof Writers\FlushableInterface) { return $this->writer->flush($resetAfterwards); } else { throw new \Exception('Flushing a non FlushableInterface is not possible'); } }
/** * Write entries * * @return void */ public function report() { $this->_successWriter->write($this->_successEntries); $this->_errorWriter->write($this->_errorEntries); }