protected function sendReply($result, $client, $correlationId)
    {
        $this->setParameter('correlation_id', $correlationId);
        $reply = new AMQPMessage(
            $result,
            $this->getParameters()
        );
        $this->channel
            ->basic_publish($reply, '', $client);
    }
protected function sendReply($result, $client, $correlationId)
    {
        $this->setParameter('correlation_id', $correlationId);
        $reply = new AMQPMessage(
            $result,
            $this->getParameters()
        );
        $this->channel
            ->basic_publish($reply, '', $client);
    }
protected function sendReply ( $ result , $ client , $ correlationId ) { $ this -> setParameter ( 'correlation_id' , $ correlationId ) ; $ reply = new AMQPMessage ( $ result , $ this -> getParameters ( ) ) ; $ this -> channel -> basic_publish ( $ reply , '' , $ client ) ; }
Send reply.

@param string $result
@param string $client
@param string $correlationId
@throws \PhpAmqpLib\Exception\AMQPInvalidArgumentException
Send reply .