\Guzzle\BatchBatchDivisorInterface

Interface used for dividing a queue of items into an array of batches

Summary

Methods
Constants
createBatches()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

createBatches()

createBatches(\SplQueue  $queue) : array|\Traversable

Divide a queue of items into an array batches

Parameters

\SplQueue $queue

Queue of items to divide into batches. Items are removed as they are iterated.

Returns

array|\Traversable —

Returns an array or Traversable object that contains arrays of items to transfer