Пример #1
0
 /**
  * Get the vector clock returned with this response.
  *
  * @return \Riak\Client\Core\Query\VClock
  */
 public function getVectorClock()
 {
     if ($this->values->isEmpty()) {
         return;
     }
     $first = $this->values->first();
     $vclock = $first->getVClock();
     return $vclock;
 }
 /**
  * {@inheritdoc}
  */
 public function resolve(RiakList $siblings)
 {
     /** @var $result \RiakClientFixture\Domain\SimpleObject */
     $result = clone $siblings->first();
     $values = "";
     /** @var $object \RiakClientFixture\Domain\SimpleObject */
     foreach ($siblings as $object) {
         $values[] = $object->getValue();
     }
     $result->setValue(implode($values, PHP_EOL));
     return $result;
 }