FOSElasticaBundle/Paginator/PartialResultsInterface.php

32 lines
486 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Paginator;
interface PartialResultsInterface
{
/**
* Returns the paginated results.
*
* @return array
*
* @api
*/
2015-03-12 11:20:00 +01:00
public function toArray();
/**
* Returns the number of results.
*
* @return integer The number of results.
*
* @api
*/
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();
}