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

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();
}