PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
updraftplus
/
vendor
/
guzzle
/
guzzle
/
src
/
Guzzle
/
Batch
<?php namespace Guzzle\Batch; /** * Divides batches into smaller batches under a certain size */ class BatchSizeDivisor implements BatchDivisorInterface { /** @var int Size of each batch */ protected $size; /** @param int $size Size of each batch */ public function __construct($size) { $this->size = $size; } /** * Set the size of each batch * * @param int $size Size of each batch * * @return BatchSizeDivisor */ public function setSize($size) { $this->size = $size; return $this; } /** * Get the size of each batch * * @return int */ public function getSize() { return $this->size; } public function createBatches(\SplQueue $queue) { return array_chunk(iterator_to_array($queue, false), $this->size); } }
[-] AbstractBatchDecorator.php
[edit]
[-] composer.json
[edit]
[+]
..
[+]
Exception
[-] FlushingBatch.php
[edit]
[-] ExceptionBufferingBatch.php
[edit]
[-] BatchInterface.php
[edit]
[-] BatchBuilder.php
[edit]
[-] BatchSizeDivisor.php
[edit]
[-] BatchCommandTransfer.php
[edit]
[-] BatchTransferInterface.php
[edit]
[-] NotifyingBatch.php
[edit]
[-] BatchRequestTransfer.php
[edit]
[-] HistoryBatch.php
[edit]
[-] BatchClosureTransfer.php
[edit]
[-] BatchDivisorInterface.php
[edit]
[-] BatchClosureDivisor.php
[edit]
[-] Batch.php
[edit]