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');
        }
    }
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');
        }
    }
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' ) ; } }
Flush the contents of the writer
@param  $resetAfterwards Reset the writer contents after flushing?
@return string The writer contents
Flush the contents of the writer