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