Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($size) | |
createBatches (\SplQueue $queue) | |
getSize () | |
setSize ($size) | |
Protected Attributes | |
$size | |
Divides batches into smaller batches under a certain size
Definition at line 8 of file BatchSizeDivisor.php.
Guzzle\Batch\BatchSizeDivisor::__construct | ( | $size | ) |
int | $size | Size of each batch |
Definition at line 17 of file BatchSizeDivisor.php.
References Guzzle\Batch\BatchSizeDivisor\$size.
Guzzle\Batch\BatchSizeDivisor::createBatches | ( | \SplQueue | $queue | ) |
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. |
Implements Guzzle\Batch\BatchDivisorInterface.
Definition at line 46 of file BatchSizeDivisor.php.
Guzzle\Batch\BatchSizeDivisor::getSize | ( | ) |
Get the size of each batch
Definition at line 41 of file BatchSizeDivisor.php.
References Guzzle\Batch\BatchSizeDivisor\$size.
Guzzle\Batch\BatchSizeDivisor::setSize | ( | $size | ) |
Set the size of each batch
int | $size | Size of each batch |
Definition at line 29 of file BatchSizeDivisor.php.
References Guzzle\Batch\BatchSizeDivisor\$size.
|
protected |
Size of each batch
Definition at line 14 of file BatchSizeDivisor.php.
Referenced by Guzzle\Batch\BatchSizeDivisor\__construct(), Guzzle\Batch\BatchSizeDivisor\getSize(), and Guzzle\Batch\BatchSizeDivisor\setSize().