Class Guzzle\Batch\HistoryBatch

InheritanceGuzzle\Batch\HistoryBatch » Guzzle\Batch\AbstractBatchDecorator
ImplementsGuzzle\Batch\BatchInterface

BatchInterface decorator used to keep a history of items that were added to the batch. You must clear the history manually to remove items from the history.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$decoratedBatch Guzzle\Batch\BatchInterface Decorated batch object Guzzle\Batch\AbstractBatchDecorator
$history array Items in the history Guzzle\Batch\HistoryBatch

Property Details

$history protected property

Items in the history

protected array $history = []

Method Details

add() public method

public void add ( $item )
$item
clearHistory() public method

Clear the batch history

public void clearHistory ( )
getHistory() public method

Get the batch history

public array getHistory ( )