示例#1
0
 /**
  * @param array $hook
  *
  * @return \Riak\Client\ProtoBuf\RpbCommitHook
  */
 private function createRpbCommitHook(array $hook)
 {
     $func = new RpbCommitHook();
     if (isset($hook['name'])) {
         $func->setName($hook['name']);
         return $func;
     }
     $func->setModfun($this->createRpbModFun($hook));
     return $func;
 }