35 lines
565 B
PHP
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();
|
|
}
|