FOSElasticaBundle/Paginator/PartialResultsInterface.php
2015-03-12 21:58:02 +11:00

35 lines
565 B
PHP

<?php
namespace FOS\ElasticaBundle\Paginator;
interface PartialResultsInterface
{
/**
* Returns the paginated results.
*
* @return array
*/
public function toArray();
/**
* Returns the number of results.
*
* @return integer The number of results.
*/
public function getTotalHits();
/**
* Returns the facets.
*
* @return array
*/
public function getFacets();
/**
* Returns the aggregations.
*
* @return array
*/
public function getAggregations();
}