DecoratorTrait
Eases with writing decorators.
Tags
Table of Contents
Properties
- $client : mixed
Methods
- __construct() : mixed
- request() : ResponseInterface
- {@inheritdoc}
- reset() : mixed
- stream() : ResponseStreamInterface
- {@inheritdoc}
- withOptions() : self
- {@inheritdoc}
Properties
$client
private
mixed
$client
Methods
__construct()
public
__construct([HttpClientInterface|null $client = null ]) : mixed
Parameters
- $client : HttpClientInterface|null = null
request()
{@inheritdoc}
public
request(string $method, string $url[, array<string|int, mixed> $options = [] ]) : ResponseInterface
Parameters
- $method : string
- $url : string
- $options : array<string|int, mixed> = []
Return values
ResponseInterfacereset()
public
reset() : mixed
stream()
{@inheritdoc}
public
stream(mixed $responses[, float|null $timeout = null ]) : ResponseStreamInterface
Parameters
- $responses : mixed
- $timeout : float|null = null
Return values
ResponseStreamInterfacewithOptions()
{@inheritdoc}
public
withOptions(array<string|int, mixed> $options) : self
Parameters
- $options : array<string|int, mixed>