Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • 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
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

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

Interfaces

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

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 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
integer
$batchSize Size of each batch
public array|Traversable
# createBatches( SplQueue $queue )

Creates batches of requests by grouping requests by their associated curl multi object.

Creates batches of requests by grouping requests by their associated curl multi object.

Parameters

$queue
SplQueue
$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
$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

php-coveralls API documentation generated by ApiGen 2.8.0