NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface BatchDivisorInterface

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

### Direct known implementers

`Guzzle\Batch\BatchClosureDivisor`, `Guzzle\Batch\BatchCommandTransfer`, `Guzzle\Batch\BatchRequestTransfer`, `Guzzle\Batch\BatchSizeDivisor`

Namespace: Guzzle\Batch
Located at Guzzle/Batch/BatchDivisorInterface.php

## Methods summary

- `public` `createBatches ( SplQueue $queue )`

  Divide a queue of items into an array batches

## Methods detail

# `public array|`Traversable``
`createBatches( `SplQueue` $queue )`

Divide a queue of items into an array batches

#### Parameters

$queue
  ``SplQueue``
  $queue Queue of items to divide into batches. Items are removed as they are iterated.

#### Returns

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

### Magic methods summary