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

# Class NotifyingBatch

BatchInterface decorator used to call a method each time flush is called

  Guzzle\Batch\AbstractBatchDecorator implements Guzzle\Batch\BatchInterface
  Guzzle\Batch\NotifyingBatch

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

## Methods summary

- `public` `__construct ( Guzzle\Batch\BatchInterface $decoratedBatch, mixed $callable )`
- `public` `flush ( )`

  Flush the batch and transfer the items

## Methods detail

# `public`
`__construct( `Guzzle\Batch\BatchInterface` $decoratedBatch, mixed $callable )`

#### Parameters

$decoratedBatch
  ``Guzzle\Batch\BatchInterface``
  $decoratedBatch Batch object to decorate
$callable
  `mixed`
  $callable Callable to call

#### Throws

``Guzzle\Common\Exception\InvalidArgumentException``

#### Overrides

`Guzzle\Batch\AbstractBatchDecorator::__construct`
# `public array`
`flush( )`

Flush the batch and transfer the items

#### Returns

`array`
Returns an array flushed items

#### Overrides

`Guzzle\Batch\AbstractBatchDecorator::flush`

### Methods inherited from Guzzle\Batch\AbstractBatchDecorator

`__call()`, `add()`, `getDecorators()`, `isEmpty()`

### Magic methods summary

## Properties summary

`protected mixed` | $callable | # Callable to call

### Properties inherited from Guzzle\Batch\AbstractBatchDecorator

`$decoratedBatch`