2012-05-22 15:23:51 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle\Paginator;
|
2012-05-22 15:23:51 +02:00
|
|
|
|
|
|
|
interface PartialResultsInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns the paginated results.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
*/
|
|
|
|
function toArray();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of results.
|
|
|
|
*
|
|
|
|
* @return integer The number of results.
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
*/
|
|
|
|
function getTotalHits();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the facets
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
function getFacets();
|
|
|
|
}
|