32 lines
486 B
PHP
32 lines
486 B
PHP
<?php
|
|
|
|
namespace FOS\ElasticaBundle\Paginator;
|
|
|
|
interface PartialResultsInterface
|
|
{
|
|
/**
|
|
* Returns the paginated results.
|
|
*
|
|
* @return array
|
|
*
|
|
* @api
|
|
*/
|
|
public function toArray();
|
|
|
|
/**
|
|
* Returns the number of results.
|
|
*
|
|
* @return integer The number of results.
|
|
*
|
|
* @api
|
|
*/
|
|
public function getTotalHits();
|
|
|
|
/**
|
|
* Returns the facets.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getFacets();
|
|
}
|