/** * @param \Riak\Client\Core\Query\Crdt\Op\CounterOp $op * * @return integer */ private function convertCounter(CounterOp $op) { return $op->getIncrement(); }
/** * @param \Riak\Client\Core\Query\Crdt\Op\CounterOp $op * * @return \Riak\Client\ProtoBuf\CounterOp */ protected function convertCounter(Op\CounterOp $op) { $counterOp = new ProtoBuf\CounterOp(); $increment = $op->getIncrement(); $counterOp->setIncrement($increment); return $counterOp; }