Ejemplo n.º 1
0
 /**
  * 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');
     }
 }
Ejemplo n.º 2
0
 /**
  * Write entries
  *
  * @return void
  */
 public function report()
 {
     $this->_successWriter->write($this->_successEntries);
     $this->_errorWriter->write($this->_errorEntries);
 }