FOSElasticaBundle/Paginator/PartialResultsInterface.php
2014-10-08 14:31:19 -03:00

39 lines
577 B
PHP

<?php
namespace FOS\ElasticaBundle\Paginator;
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();
/**
* Returns the aggregations
*
* @return array
*/
function getAggregations();
}