pock

Client
in package
implements ClientInterface, HttpClient, HttpAsyncClient

Class Client

Tags
category

Client

Interfaces, Classes, Traits and Enums

ClientInterface
HttpClient
HttpAsyncClient

Table of Contents

__construct()  : mixed
Client constructor.
doSendRequest()  : ResponseInterface
sendAsyncRequest()  : Promise
sendRequest()  : ResponseInterface

Methods

__construct()

Client constructor.

public __construct(array<string|int, MockInterface$mocks[, ClientInterface|null $fallbackClient = null ]) : mixed
Parameters
$mocks : array<string|int, MockInterface>
$fallbackClient : ClientInterface|null = null
Return values
mixed

doSendRequest()

public doSendRequest(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Tags
throws
Throwable
Return values
ResponseInterface

sendAsyncRequest()

public sendAsyncRequest(RequestInterface $request) : Promise
Parameters
$request : RequestInterface
Tags
inheritDoc
throws
Throwable
Return values
Promise

sendRequest()

public sendRequest(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Tags
inheritDoc
throws
Throwable
Return values
ResponseInterface

Search results