src/Transport/Parser.php
private function setFrame($bodySize)
    {
        $this->frame = $this->factory->createFrame(
            $this->command,
            $this->headers,
            (string)substr($this->buffer, $this->offset, $bodySize),
            $this->legacyMode
        );

        $this->expectedBodyLength = null;
        $this->headers = [];
        $this->mode = self::MODE_HEADER;
    }
private function setFrame($bodySize)
    {
        $this->frame = $this->factory->createFrame(
            $this->command,
            $this->headers,
            (string)substr($this->buffer, $this->offset, $bodySize),
            $this->legacyMode
        );

        $this->expectedBodyLength = null;
        $this->headers = [];
        $this->mode = self::MODE_HEADER;
    }
private function setFrame ( $ bodySize ) { $ this -> frame = $ this -> factory -> createFrame ( $ this -> command , $ this -> headers , ( string ) substr ( $ this -> buffer , $ this -> offset , $ bodySize ) , $ this -> legacyMode ) ; $ this -> expectedBodyLength = null ; $ this -> headers = [ ] ; $ this -> mode = self :: MODE_HEADER ; }
Adds a frame from current known command, headers. Uses current offset and given body size.

@param integer $bodySize
Adds a frame from current known command headers . Uses current offset and given body size .