Class Guzzle\Batch\BatchSizeDivisor

InheritanceGuzzle\Batch\BatchSizeDivisor
ImplementsGuzzle\Batch\BatchDivisorInterface

Divides batches into smaller batches under a certain size

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$size int Size of each batch Guzzle\Batch\BatchSizeDivisor

Property Details

$size protected property

Size of each batch

protected int $size null

Method Details

__construct() public method

public void __construct ( $size )
$size int

Size of each batch

createBatches() public method

public void createBatches ( SplQueue $queue )
$queue
getSize() public method

Get the size of each batch

public int getSize ( )
setSize() public method

Set the size of each batch

public Guzzle\Batch\BatchSizeDivisor setSize ( $size )
$size int

Size of each batch