FOSElasticaBundle/Paginator/PartialResultsInterface.php

35 lines
565 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Paginator;
interface PartialResultsInterface
{
/**
* Returns the paginated results.
*
* @return array
*/
2015-03-12 11:20:00 +01:00
public function toArray();
/**
* Returns the number of results.
*
* @return integer The number of results.
*/
2015-03-12 11:20:00 +01:00
public function getTotalHits();
/**
2015-03-12 11:20:00 +01:00
* Returns the facets.
*
* @return array
*/
2015-03-12 11:20:00 +01:00
public function getFacets();
2015-03-12 11:45:24 +01:00
2014-10-08 19:31:19 +02:00
/**
2015-03-12 11:45:24 +01:00
* Returns the aggregations.
2014-10-08 19:31:19 +02:00
*
* @return array
*/
2015-03-12 11:57:26 +01:00
public function getAggregations();
2014-10-08 19:31:19 +02:00
}