/**
  * @param \Riak\Client\Core\Query\Crdt\Op\SetOp $op
  *
  * @return array
  */
 private function convertSet(SetOp $op)
 {
     $value = [];
     $add = $op->getAdds();
     $remove = $op->getRemoves();
     if (!empty($add)) {
         $value['add_all'] = $add;
     }
     if (!empty($remove)) {
         //$remove is always array so we need remove_all
         $value['remove_all'] = $remove;
     }
     return $value;
 }
 /**
  * @param \Riak\Client\Core\Query\Crdt\Op\SetOp $op
  *
  * @return array
  */
 private function convertSet(SetOp $op)
 {
     $value = [];
     $add = $op->getAdds();
     $remove = $op->getRemoves();
     if (!empty($add)) {
         $value['add_all'] = $add;
     }
     if (!empty($remove)) {
         //remove_all ??
         $value['remove'] = $remove;
     }
     return $value;
 }
 /**
  * @param \Riak\Client\Core\Query\Crdt\Op\SetOp $op
  *
  * @return \Riak\Client\ProtoBuf\SetOp
  */
 protected function convertSet(Op\SetOp $op)
 {
     $setOp = new ProtoBuf\SetOp();
     $setOp->setRemoves($op->getRemoves());
     $setOp->setAdds($op->getAdds());
     return $setOp;
 }