mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-26 14:56:03 +03:00
19 lines
510 B
PHP
19 lines
510 B
PHP
|
<?php
|
||
|
|
||
|
namespace Guzzle\Batch;
|
||
|
|
||
|
/**
|
||
|
* Interface used for dividing a queue of items into an array of batches
|
||
|
*/
|
||
|
interface BatchDivisorInterface
|
||
|
{
|
||
|
/**
|
||
|
* Divide a queue of items into an array batches
|
||
|
*
|
||
|
* @param \SplQueue $queue Queue of items to divide into batches. Items are removed as they are iterated.
|
||
|
*
|
||
|
* @return array|\Traversable Returns an array or Traversable object that contains arrays of items to transfer
|
||
|
*/
|
||
|
public function createBatches(\SplQueue $queue);
|
||
|
}
|