FOSElasticaBundle/Doctrine/SliceFetcherInterface.php

25 lines
566 B
PHP
Raw Permalink Normal View History

2014-10-13 15:41:29 +02:00
<?php
namespace FOS\ElasticaBundle\Doctrine;
/**
2015-03-12 11:45:24 +01:00
* Fetches a slice of objects.
2014-10-13 15:41:29 +02:00
*
* @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
2015-03-12 11:45:24 +01:00
*
2014-10-13 15:41:29 +02:00
* @return array
*/
2015-03-12 11:45:24 +01:00
public function fetch($queryBuilder, $limit, $offset, array $previousSlice, array $identifierFieldNames);
2014-10-13 15:41:29 +02:00
}