| 1 | <?php | ||
| 19 | class IteratorBasedBatchingFetcher implements BatchingFetcher { | ||
| 20 | |||
| 21 | private $iterator; | ||
| 22 | |||
| 23 | 11 | 	public function __construct( \Iterator $iterator ) { | |
| 26 | |||
| 27 | /** | ||
| 28 | * @see BatchingFetcher::fetchNext | ||
| 29 | * | ||
| 30 | * @param int $maxFetchCount | ||
| 31 | * | ||
| 32 | * @return mixed[] | ||
| 33 | */ | ||
| 34 | 11 | 	public function fetchNext( int $maxFetchCount ): array { | |
| 44 | |||
| 45 | /** | ||
| 46 | * @see BatchingFetcher::rewind | ||
| 47 | */ | ||
| 48 | 3 | 	public function rewind() { | |
| 51 | |||
| 52 | } |