src/Writer/BatchWriter.php
private function flush()
    {
        foreach ($this->queue as $item) {
            $this->delegate->writeItem($item);
        }

        if ($this->delegate instanceof FlushableWriter) {
            $this->delegate->flush();
        }
    }
private function flush()
    {
        foreach ($this->queue as $item) {
            $this->delegate->writeItem($item);
        }

        if ($this->delegate instanceof FlushableWriter) {
            $this->delegate->flush();
        }
    }
private function flush ( ) { foreach ( $ this -> queue as $ item ) { $ this -> delegate -> writeItem ( $ item ) ; } if ( $ this -> delegate instanceof FlushableWriter ) { $ this -> delegate -> flush ( ) ; } }
Flush the internal buffer to the delegated writer
Flush the internal buffer to the delegated writer