src/Transport/Parser.php
public function flushBuffer()
    {
        $this->expectedBodyLength = null;
        $this->headers = [];
        $this->mode = self::MODE_HEADER;

        $currentBuffer = substr($this->buffer, $this->offset);
        $this->offset = 0;
        $this->bufferSize = 0;
        $this->buffer = '';
        return $currentBuffer;
    }
public function flushBuffer()
    {
        $this->expectedBodyLength = null;
        $this->headers = [];
        $this->mode = self::MODE_HEADER;

        $currentBuffer = substr($this->buffer, $this->offset);
        $this->offset = 0;
        $this->bufferSize = 0;
        $this->buffer = '';
        return $currentBuffer;
    }
public function flushBuffer ( ) { $ this -> expectedBodyLength = null ; $ this -> headers = [ ] ; $ this -> mode = self :: MODE_HEADER ; $ currentBuffer = substr ( $ this -> buffer , $ this -> offset ) ; $ this -> offset = 0 ; $ this -> bufferSize = 0 ; $ this -> buffer = '' ; return $ currentBuffer ; }
Resets the current buffer within this parser and returns the flushed buffer value.

@return string
Resets the current buffer within this parser and returns the flushed buffer value .