Class BatchCommandTransfer
-
Guzzle\Batch\BatchCommandTransfer
implements
Guzzle\Batch\BatchTransferInterface,
Guzzle\Batch\BatchDivisorInterface
Methods summary
public
|
#
__construct( integer $batchSize = 50 )
Constructor used to specify how large each batch should be
Constructor used to specify how large each batch should be
Parameters
- $batchSize
integer $batchSize Size of each batch
|
public
array|Traversable
|
#
createBatches( SplQueue $queue )
Creates batches by grouping commands by their associated client
Creates batches by grouping commands by their associated client
Parameters
- $queue
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
Implementation of
|
public
|
#
transfer( array $batch )
Transfer an array of items
Transfer an array of items
Parameters
- $batch
array $batch Array of items to transfer
Implementation of
|
Properties summary
protected
integer
|
$batchSize
|
|
#
Size of each command batch
Size of each command batch
|