$size
$size : integer
Divides batches into smaller batches under a certain size
setSize(integer $size) : \Guzzle\Batch\BatchSizeDivisor
Set the size of each batch
integer | $size | Size of each batch |
createBatches(\SplQueue $queue) : array|\Traversable
Divide a queue of items into an array batches
\SplQueue | $queue | Queue of items to divide into batches. Items are removed as they are iterated. |
Returns an array or Traversable object that contains arrays of items to transfer