Documentation

BatchDivisorInterface

Interface used for dividing a queue of items into an array of batches

Table of Contents

Methods

createBatches()  : array<string|int, mixed>|Traversable
Divide a queue of items into an array batches

Methods

createBatches()

Divide a queue of items into an array batches

public createBatches(SplQueue $queue) : array<string|int, mixed>|Traversable
Parameters
$queue : SplQueue

Queue of items to divide into batches. Items are removed as they are iterated.

Return values
array<string|int, mixed>|Traversable

Returns an array or Traversable object that contains arrays of items to transfer


        
On this page

Search results