1: <?php
2:
3: namespace Guzzle\Batch;
4:
5: /**
6: * Interface used for dividing a queue of items into an array of batches
7: */
8: interface BatchDivisorInterface
9: {
10: /**
11: * Divide a queue of items into an array batches
12: *
13: * @param \SplQueue $queue Queue of items to divide into batches. Items are removed as they are iterated.
14: *
15: * @return array|\Traversable Returns an array or Traversable object that contains arrays of items to transfer
16: */
17: public function createBatches(\SplQueue $queue);
18: }
19: