src/Transport/FrameFactory.php
public function createFrame($command, array $headers, $body, $legacyMode)
    {
        foreach ($this->resolver as $resolver) {
            if ($frame = $resolver($command, $headers, $body, $legacyMode)) {
                return $frame;
            }
        }
        return $this->defaultFrame($command, $headers, $body, $legacyMode);
    }
public function createFrame($command, array $headers, $body, $legacyMode)
    {
        foreach ($this->resolver as $resolver) {
            if ($frame = $resolver($command, $headers, $body, $legacyMode)) {
                return $frame;
            }
        }
        return $this->defaultFrame($command, $headers, $body, $legacyMode);
    }
public function createFrame ( $ command , array $ headers , $ body , $ legacyMode ) { foreach ( $ this -> resolver as $ resolver ) { if ( $ frame = $ resolver ( $ command , $ headers , $ body , $ legacyMode ) ) { return $ frame ; } } return $ this -> defaultFrame ( $ command , $ headers , $ body , $ legacyMode ) ; }
Creates a frame instance out of the given frame details.

@param string $command
@param array $headers
@param string $body
@param boolean $legacyMode stomp 1.0 mode (headers)
@return Frame
Creates a frame instance out of the given frame details .