mapper = $mapper; } /** * @see Zend\Paginator\Adapter::getItems */ public function getItems($offset, $itemCountPerPage) { $results = $this->getElasticaResults($offset, $itemCountPerPage); return $this->mapper->fromElasticaObjects($results); } }