src/Epkm/MessagePackRpc/Back.php
public function clientRecvObject($recv)
    {
        $data = $this->serializer->unserialize($recv);

        $type = $data[0];
        $code = $data[1];
        $errs = $data[2];
        $sets = $data[3];

        if ($type != 1) {
            throw new ProtocolErrorException("Invalid message type for response: {$type}");
        }

        $feature = new Future();
        $feature->setErrors($errs);
        $feature->setResult($sets);

        return $feature;
    }
public function clientRecvObject($recv)
    {
        $data = $this->serializer->unserialize($recv);

        $type = $data[0];
        $code = $data[1];
        $errs = $data[2];
        $sets = $data[3];

        if ($type != 1) {
            throw new ProtocolErrorException("Invalid message type for response: {$type}");
        }

        $feature = new Future();
        $feature->setErrors($errs);
        $feature->setResult($sets);

        return $feature;
    }
@param $recv

@return Future
@throws Exception\ProtocolErrorException