src/Protocol/Protocol.php
public function getNackFrame(Frame $frame, $transactionId = null, $requeue = null)
    {
        if ($requeue !== null) {
            throw new \LogicException('requeue header not supported');
        }
        if ($this->version === Version::VERSION_1_0) {
            throw new StompException('Stomp Version 1.0 has no support for NACK Frames.');
        }
        $nack = $this->createFrame('NACK');
        $nack['transaction'] = $transactionId;
        if ($this->hasVersion(Version::VERSION_1_2)) {
            $nack['id'] = $frame->getMessageId();
        } else {
            $nack['message-id'] = $frame->getMessageId();
            if ($this->hasVersion(Version::VERSION_1_1)) {
                $nack['subscription'] = $frame['subscription'];
            }
        }

        $nack['message-id'] = $frame->getMessageId();
        return $nack;
    }
public function getNackFrame(Frame $frame, $transactionId = null, $requeue = null)
    {
        if ($requeue !== null) {
            throw new \LogicException('requeue header not supported');
        }
        if ($this->version === Version::VERSION_1_0) {
            throw new StompException('Stomp Version 1.0 has no support for NACK Frames.');
        }
        $nack = $this->createFrame('NACK');
        $nack['transaction'] = $transactionId;
        if ($this->hasVersion(Version::VERSION_1_2)) {
            $nack['id'] = $frame->getMessageId();
        } else {
            $nack['message-id'] = $frame->getMessageId();
            if ($this->hasVersion(Version::VERSION_1_1)) {
                $nack['subscription'] = $frame['subscription'];
            }
        }

        $nack['message-id'] = $frame->getMessageId();
        return $nack;
    }
public function getNackFrame ( Frame $ frame , $ transactionId = null , $ requeue = null ) { if ( $ requeue !== null ) { throw new \ LogicException ( 'requeue header not supported' ) ; } if ( $ this -> version === Version :: VERSION_1_0 ) { throw new StompException ( 'Stomp Version 1.0 has no support for NACK Frames.' ) ; } $ nack = $ this -> createFrame ( 'NACK' ) ; $ nack [ 'transaction' ] = $ transactionId ; if ( $ this -> hasVersion ( Version :: VERSION_1_2 ) ) { $ nack [ 'id' ] = $ frame -> getMessageId ( ) ; } else { $ nack [ 'message-id' ] = $ frame -> getMessageId ( ) ; if ( $ this -> hasVersion ( Version :: VERSION_1_1 ) ) { $ nack [ 'subscription' ] = $ frame [ 'subscription' ] ; } } $ nack [ 'message-id' ] = $ frame -> getMessageId ( ) ; return $ nack ; }
Get message not acknowledge frame.

@param \Stomp\Transport\Frame $frame
@param string $transactionId
@param bool $requeue Requeue header
@return \Stomp\Transport\Frame
@throws StompException
@throws \LogicException
Get message not acknowledge frame .