FOSElasticaBundle/Paginator/PaginatorAdapterInterface.php
2015-03-12 21:20:00 +11:00

35 lines
614 B
PHP

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