Interface BatchDivisorInterface
Interface used for dividing a queue of items into an array of batches
Direct known implementers
Guzzle\Batch\BatchClosureDivisor,
Guzzle\Batch\BatchCommandTransfer,
Guzzle\Batch\BatchRequestTransfer,
Guzzle\Batch\BatchSizeDivisor
Methods summary
-
publiccreateBatches ( SplQueue $queue )Divide a queue of items into an array batches
Methods detail
Divide a queue of items into an array batches
Parameters
- $queue
SplQueue
$queue Queue of items to divide into batches. Items are removed as they are iterated.