/** * @param ResultInterface|null $result * @return ResultInterface|array */ private function castResult(ResultInterface $result = null) { if (empty($this->value_caster)) { $this->value_caster = new ValueCaster(['context' => ValueCasterInterface::CAST_JSON]); } if ($result) { return $result->setValueCaster($this->value_caster); } else { return []; } }
/** * Returns the row (assoc array) at current cursor position. * * @return array */ public function current() { return $this->result->getCurrentRow(); }