Documentation

PluginChain
in package

FinalYes

Table of Contents

Properties

$clientCallable  : callable(RequestInterface): Promise
$maxRestarts  : int
$plugins  : array<string|int, Plugin>
$restarts  : int

Methods

__construct()  : mixed
__invoke()  : Promise
createChain()  : callable

Properties

Methods

__construct()

public __construct(array<string|int, Plugin$plugins, callable(RequestInterface): Promise $clientCallable[, array{'max_restarts'?: int} $options = [] ]) : mixed
Parameters
$plugins : array<string|int, Plugin>

A plugin chain

$clientCallable : callable(RequestInterface): Promise

Callable making the HTTP call

$options : array{'max_restarts'?: int} = []

createChain()

private createChain() : callable
Return values
callable

        
On this page

Search results