0d9e0f1172
Bug fix: no Feature addition: yes Backwards compatibility break: no Encapsulated Pagerfanta dependency for pagination and added support for knp pagination component
32 lines
464 B
PHP
32 lines
464 B
PHP
<?php
|
|
|
|
namespace FOQ\ElasticaBundle\Paginator;
|
|
|
|
interface PartialResultsInterface
|
|
{
|
|
/**
|
|
* Returns the paginated results.
|
|
*
|
|
* @return array
|
|
*
|
|
* @api
|
|
*/
|
|
function toArray();
|
|
|
|
/**
|
|
* Returns the number of results.
|
|
*
|
|
* @return integer The number of results.
|
|
*
|
|
* @api
|
|
*/
|
|
function getTotalHits();
|
|
|
|
|
|
/**
|
|
* Returns the facets
|
|
*
|
|
* @return array
|
|
*/
|
|
function getFacets();
|
|
} |