Class BatchSizeDivisor
Divides batches into smaller batches under a certain size
- Guzzle\Batch\BatchSizeDivisor implements Guzzle\Batch\BatchDivisorInterface
Methods summary
-
public__construct ( int $size ) -
publicsetSize ( int $size )Set the size of each batch
-
publicgetSize ( )Get the size of each batch
-
publiccreateBatches ( 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
integerDivide 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 |