2012-05-22 15:23:51 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle\Paginator;
|
2012-05-22 15:23:51 +02:00
|
|
|
|
|
|
|
interface PartialResultsInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns the paginated results.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
*/
|
2015-03-12 11:20:00 +01:00
|
|
|
public function toArray();
|
2012-05-22 15:23:51 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of results.
|
|
|
|
*
|
|
|
|
* @return integer The number of results.
|
|
|
|
*
|
|
|
|
* @api
|
|
|
|
*/
|
2015-03-12 11:20:00 +01:00
|
|
|
public function getTotalHits();
|
2012-05-22 15:23:51 +02:00
|
|
|
|
|
|
|
/**
|
2015-03-12 11:20:00 +01:00
|
|
|
* Returns the facets.
|
2012-05-22 15:23:51 +02:00
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-03-12 11:20:00 +01:00
|
|
|
public function getFacets();
|
|
|
|
}
|