BatchClient
in package
implements
BatchClientInterface
FinalYes
Table of Contents
Interfaces
- BatchClientInterface
- BatchClient allow to sends multiple request and retrieve a Batch Result.
Properties
Methods
- __construct() : mixed
- sendRequests() : BatchResult
- Send several requests.
Properties
$client
private
ClientInterface
$client
Methods
__construct()
public
__construct(ClientInterface $client) : mixed
Parameters
- $client : ClientInterface
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