FOSElasticaBundle/Paginator/PaginatorAdapterInterface.php

35 lines
614 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Paginator;
interface PaginatorAdapterInterface
{
/**
* Returns the number of results.
*
* @return integer The number of results.
*
* @api
*/
2015-03-12 11:20:00 +01:00
public function getTotalHits();
/**
* Returns an slice of the results.
*
* @param integer $offset The offset.
* @param integer $length The length.
*
* @return PartialResultsInterface
*
* @api
*/
2015-03-12 11:20:00 +01:00
public function getResults($offset, $length);
/**
2015-03-12 11:20:00 +01:00
* Returns Facets.
*
* @return mixed
*/
2015-03-12 11:20:00 +01:00
public function getFacets();
}