$callable
$callable : callable
Divides batches using a callable
__construct(callable $callable, mixed $context = null)
| callable | $callable | Method used to divide the batches. The method must accept an \SplQueue and return an array of arrays containing the divided items.  | 
                            
| mixed | $context | Optional context to pass to the batch divisor  | 
                            
if the callable is not callable
createBatches(\SplQueue  $queue) : array|\Traversable
                Divide a queue of items into an array batches
| \SplQueue | $queue | Queue of items to divide into batches. Items are removed as they are iterated.  | 
                            
Returns an array or Traversable object that contains arrays of items to transfer