28 lines
519 B
PHP
28 lines
519 B
PHP
|
<?php
|
||
|
|
||
|
namespace FOQ\ElasticaBundle\Paginator;
|
||
|
|
||
|
interface PaginatorAdapterInterface
|
||
|
{
|
||
|
/**
|
||
|
* Returns the number of results.
|
||
|
*
|
||
|
* @return integer The number of results.
|
||
|
*
|
||
|
* @api
|
||
|
*/
|
||
|
function getTotalHits();
|
||
|
|
||
|
/**
|
||
|
* Returns an slice of the results.
|
||
|
*
|
||
|
* @param integer $offset The offset.
|
||
|
* @param integer $length The length.
|
||
|
*
|
||
|
* @return FOQ\ElasticaBundle\Paginator\PartialResults
|
||
|
*
|
||
|
* @api
|
||
|
*/
|
||
|
function getResults($offset, $length);
|
||
|
}
|