src/Scrutinizer/RabbitMQ/Rpc/RpcClient.php
public function invoke($queueName, $payload, $resultType, $timeout = 10)
    {
        $rs = $this->invokeAll(array(array($queueName, $payload, $resultType)), $timeout);
        if ($rs[0] instanceof RpcError) {
            throw new RpcErrorException($rs[0]);
        }

        return $rs[0];
    }
public function invoke($queueName, $payload, $resultType, $timeout = 10)
    {
        $rs = $this->invokeAll(array(array($queueName, $payload, $resultType)), $timeout);
        if ($rs[0] instanceof RpcError) {
            throw new RpcErrorException($rs[0]);
        }

        return $rs[0];
    }
public function invoke ( $ queueName , $ payload , $ resultType , $ timeout = 10 ) { $ rs = $ this -> invokeAll ( array ( array ( $ queueName , $ payload , $ resultType ) ) , $ timeout ) ; if ( $ rs [ 0 ] instanceof RpcError ) { throw new RpcErrorException ( $ rs [ 0 ] ) ; } return $ rs [ 0 ] ; }
Invokes a single remote command and returns the result of the invocation.

The remote command is invoked synchronously.

@param $queueName
@param $payload
@param $resultType

@throws RpcErrorException when a remote error occurs

@return mixed
Invokes a single remote command and returns the result of the invocation .