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 BatchRequestTransfer

Batch transfer strategy used to efficiently transfer a batch of requests. This class is to be used with Guzzle\Batch\BatchInterface

Guzzle\Batch\BatchRequestTransfer implements Guzzle\Batch\BatchTransferInterface, Guzzle\Batch\BatchDivisorInterface
Namespace: Guzzle\Batch
Located at src/Guzzle/Batch/BatchRequestTransfer.php
Methods summary
public
# __construct( integer $batchSize = 50 )

Constructor used to specify how large each batch should be

Constructor used to specify how large each batch should be

Parameters

$batchSize
Size of each batch
public array|Traversable
# createBatches( SplQueue $queue )

Creates batches of requests by grouping requests by their associated curl multi object. Divide a queue of items into an array batches

Creates batches of requests by grouping requests by their associated curl multi object. 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()
public
# transfer( array $batch )

Transfer an array of items

Transfer an array of items

Parameters

$batch
Array of items to transfer

Implementation of

Guzzle\Batch\BatchTransferInterface::transfer()
Properties summary
protected integer $batchSize

Size of each command batch

Size of each command batch

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