NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class HistoryBatch

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.

  Guzzle\Batch\AbstractBatchDecorator implements Guzzle\Batch\BatchInterface
  Guzzle\Batch\HistoryBatch

Namespace: Guzzle\Batch
Located at Guzzle/Batch/HistoryBatch.php

## Methods summary

- `public` `add ( mixed $item )`

  Add an item to the queue

- `public` `getHistory ( )`

  Get the batch history

- `public` `clearHistory ( )`

  Clear the batch history

## Methods detail

# `public `Guzzle\Batch\HistoryBatch``
`add( mixed $item )`

Add an item to the queue

#### Parameters

$item
  `mixed`
  $item Item to add

#### Returns

``Guzzle\Batch\HistoryBatch``

#### Overrides

`Guzzle\Batch\AbstractBatchDecorator::add`
# `public array`
`getHistory( )`

Get the batch history

#### Returns

`array`
# `public`
`clearHistory( )`

Clear the batch history

### Methods inherited from Guzzle\Batch\AbstractBatchDecorator

`__call()`, `__construct()`, `flush()`, `getDecorators()`, `isEmpty()`

### Magic methods summary

## Properties summary

`protected array` | $history | # Items in the history

### Properties inherited from Guzzle\Batch\AbstractBatchDecorator

`$decoratedBatch`