Class BatchSizeDivisor
Divides batches into smaller batches under a certain size
- Guzzle\Batch\BatchSizeDivisor implements Guzzle\Batch\BatchDivisorInterface
Methods summary
-
public
__construct ( int $size )
-
public
setSize ( int $size )
Set the size of each batch
-
public
getSize ( )
Get the size of each batch
-
public
createBatches ( SplQueue $queue )
Divide a queue of items into an array batches
Methods detail
Parameters
- $size
integer
$size Size of each batch
Set the size of each batch
Parameters
- $size
integer
$size Size of each batch
Returns
Get the size of each batch
Returns
integer
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.
Returns
Implementation of
Magic methods summary
Properties summary
protected
integer
|
$size |
#
Size of each batch |