Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractBatchDecorator
  • Batch
  • BatchBuilder
  • BatchClosureDivisor
  • BatchClosureTransfer
  • BatchCommandTransfer
  • BatchRequestTransfer
  • BatchSizeDivisor
  • ExceptionBufferingBatch
  • FlushingBatch
  • HistoryBatch
  • NotifyingBatch

Interfaces

  • BatchDivisorInterface
  • BatchInterface
  • BatchTransferInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class BatchSizeDivisor

Divides batches into smaller batches under a certain size

Guzzle\Batch\BatchSizeDivisor implements Guzzle\Batch\BatchDivisorInterface
Namespace: Guzzle\Batch
Located at src/Guzzle/Batch/BatchSizeDivisor.php
Methods summary
public
# __construct( integer $size )

Parameters

$size
Size of each batch
public Guzzle\Batch\BatchSizeDivisor
# setSize( integer $size )

Set the size of each batch

Set the size of each batch

Parameters

$size
Size of each batch

Returns

Guzzle\Batch\BatchSizeDivisor
public integer
# getSize( )

Get the size of each batch

Get the size of each batch

Returns

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

Divide a queue of items into an array batches

Divide a queue of items into an array batches

Parameters

$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

Implementation of

Guzzle\Batch\BatchDivisorInterface::createBatches()
Properties summary
protected integer $size

Size of each batch

Size of each batch

#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen