FOSElasticaBundle/Paginator/PartialResultsInterface.php

39 lines
577 B
PHP
Raw Normal View History

<?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();
2014-10-08 19:31:19 +02:00
/**
* Returns the aggregations
*
* @return array
*/
function getAggregations();
}