/** * {@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; }
/** * 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; }
/** * @param \Riak\Client\Core\Query\Index\RiakIndex[] $list */ public function __construct(array $list = []) { parent::__construct([]); array_walk($list, [$this, 'addIndex']); }