code: public function getItems($offset, $itemCountPerPage)
      {
          $this->paginator
               ->getQuery()
               ->setFirstResult($offset)
               ->setMaxResults($itemCountPerPage);
  
          return $this->paginator->getIterator();
      }
docs: {@inheritDoc}