EchoClient
in package
implements
ClientInterface
Echoes the http request back (as a JSON object)
Table of Contents
Interfaces
- ClientInterface
Properties
- $responseFactory : ResponseFactoryInterface
Methods
- __construct() : mixed
- EchoClient constructor.
- sendRequest() : ResponseInterface
Properties
$responseFactory
protected
ResponseFactoryInterface
$responseFactory
Methods
__construct()
EchoClient constructor.
public
__construct(ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $responseFactory : ResponseFactoryInterface
sendRequest()
public
sendRequest(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface