src/Transport/FrameFactory.php
private function defaultFrame($command, array $headers, $body, $legacyMode)
    {
        $frame = new Frame($command, $headers, $body);
        $frame->legacyMode($legacyMode);
        return $frame;
    }
private function defaultFrame($command, array $headers, $body, $legacyMode)
    {
        $frame = new Frame($command, $headers, $body);
        $frame->legacyMode($legacyMode);
        return $frame;
    }
private function defaultFrame ( $ command , array $ headers , $ body , $ legacyMode ) { $ frame = new Frame ( $ command , $ headers , $ body ) ; $ frame -> legacyMode ( $ legacyMode ) ; return $ frame ; }
Creates a new default frame instance.

@param string $command
@param array $headers
@param string $body
@param boolean $legacyMode
@return Frame
Creates a new default frame instance .