Method | Description | |
---|---|---|
__destruct ( ) | We have to unwrap and send all promises at the end before analytics objects is destroyed. | |
post ( string $url, boolean $nonBlocking = false ) : |
Sends request to Google Analytics. | |
setClient ( |
Sets HTTP client. |
Method | Description | |
---|---|---|
getAnalyticsResponse ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface $response ) : |
Creates an analytics response object. |
Method | Description | |
---|---|---|
getClient ( ) : |
Gets HTTP client for internal class use. |
public __destruct ( ) |
protected getAnalyticsResponse ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface $response ) : |
||
$request | Psr\Http\Message\RequestInterface | |
$response | Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface | |
return |
public setClient ( |
||
$client |