FOSElasticaBundle/Paginator/PaginatorAdapterInterface.php

38 lines
689 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Paginator;
interface PaginatorAdapterInterface
{
/**
* Returns the number of results.
*
* @return integer The number of results.
*/
2015-03-12 11:20:00 +01:00
public function getTotalHits();
/**
* Returns an slice of the results.
*
* @param integer $offset The offset.
* @param integer $length The length.
*
* @return PartialResultsInterface
*/
2015-03-12 11:20:00 +01:00
public function getResults($offset, $length);
/**
2015-03-12 11:20:00 +01:00
* Returns Facets.
*
* @return mixed
*/
2015-03-12 11:20:00 +01:00
public function getFacets();
2015-03-12 11:45:24 +01:00
2014-10-08 19:31:39 +02:00
/**
2015-03-12 11:45:24 +01:00
* Returns Aggregations.
2014-10-08 19:31:39 +02:00
*
* @return mixed
*/
2015-03-12 11:57:26 +01:00
public function getAggregations();
}