indexService)) { $this->indexService = $this->getServiceLocator()->get(IndexDocumentBuilder::class); } return $this->indexService; } public function valid() { return $this->getInnerIterator()->valid(); } /** * @return mixed|IndexDocument * @throws \common_Exception * @throws \common_exception_InconsistentData */ public function current() { return $this->getIndexer()->createDocumentFromResource($this->getInnerIterator()->current()); } }