25 lines
566 B
PHP
25 lines
566 B
PHP
<?php
|
|
|
|
namespace FOS\ElasticaBundle\Doctrine;
|
|
|
|
/**
|
|
* Fetches a slice of objects.
|
|
*
|
|
* @author Thomas Prelot <tprelot@gmail.com>
|
|
*/
|
|
interface SliceFetcherInterface
|
|
{
|
|
/**
|
|
* Fetches a slice of objects using the query builder.
|
|
*
|
|
* @param object $queryBuilder
|
|
* @param integer $limit
|
|
* @param integer $offset
|
|
* @param array $previousSlice
|
|
* @param array $identifierFieldNames
|
|
*
|
|
* @return array
|
|
*/
|
|
public function fetch($queryBuilder, $limit, $offset, array $previousSlice, array $identifierFieldNames);
|
|
}
|