24 lines
551 B
PHP
24 lines
551 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
|
||
|
*/
|
||
|
function fetch($queryBuilder, $limit, $offset, array $previousSlice, array $identifierFieldNames);
|
||
|
}
|