Пример #1
0
 /**
  * @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;
 }
Пример #2
0
 /**
  * @param \Riak\Client\Core\Query\Crdt\Op\CounterOp $op
  *
  * @return integer
  */
 private function convertCounter(CounterOp $op)
 {
     return $op->getIncrement();
 }