Documentation

BatchClient
in package
implements BatchClientInterface

FinalYes

Table of Contents

Interfaces

BatchClientInterface
BatchClient allow to sends multiple request and retrieve a Batch Result.

Properties

$client  : ClientInterface

Methods

__construct()  : mixed
sendRequests()  : BatchResult
Send several requests.

Properties

Methods

sendRequests()

Send several requests.

public sendRequests(array<string|int, mixed> $requests) : BatchResult

You may not assume that the requests are executed in a particular order. If the order matters for your application, use sendRequest sequentially.

Parameters
$requests : array<string|int, mixed>

The requests to send

Return values
BatchResult

Containing one result per request


        
On this page

Search results