LoggingClient
in package
implements
ClientInterface
a silly logging wrapper (do not use in production!)
Tags
Table of Contents
Interfaces
- ClientInterface
Properties
Methods
- __construct() : mixed
- LoggingClient constructor.
- sendRequest() : ResponseInterface
- setLogger() : static
Properties
$http
protected
ClientInterface
$http
$logger
protected
LoggerInterface
$logger
Methods
__construct()
LoggingClient constructor.
public
__construct(ClientInterface $http[, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
- $http : ClientInterface
- $logger : LoggerInterface = new NullLogger()
sendRequest()
public
sendRequest(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface
Return values
ResponseInterfacesetLogger()
public
setLogger(LoggerInterface $logger) : static
Parameters
- $logger : LoggerInterface