\Guzzle\BatchBatchInterface

Interface for efficiently transferring items in a queue using batches

Summary

Methods
Constants
add()
flush()
isEmpty()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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