\Guzzle\BatchNotifyingBatch

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

Summary

Methods
Properties
Constants
__construct()
__call()
add()
flush()
isEmpty()
getDecorators()
No public properties found
No constants found
No protected methods found
$decoratedBatch
$callable
N/A
No private methods found
No private properties found
N/A

Properties

$callable

$callable : mixed

Type

mixed — Callable to call

Methods

__construct()

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

Parameters

\Guzzle\Batch\BatchInterface $decoratedBatch

Batch object to decorate

mixed $callable

Callable to call

Throws

\Guzzle\Common\Exception\InvalidArgumentException

__call()

__call(string  $method, array  $args) : mixed

Allow decorators to implement custom methods

Parameters

string $method

Missing method name

array $args

Method arguments

Returns

mixed

add()

add(mixed  $item) : self

Add an item to the queue

Parameters

mixed $item

Item to add

Returns

self

flush()

flush() : array

Flush the batch and transfer the items

Returns

array —

Returns an array flushed items

isEmpty()

isEmpty() : boolean

Check if the batch is empty and has further items to transfer

Returns

boolean

getDecorators()

getDecorators() : array

Trace the decorators associated with the batch

Returns

array