PHP Класс TheIconic\Tracking\GoogleAnalytics\AnalyticsResponse

Represents the response got from GA.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$httpStatusCode null | integer HTTP status code for the response.
$requestUrl string Request URI that was used to send the hit.
$responseBody string Response body.

Открытые методы

Метод Описание
__construct ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface | GuzzleHttp\Promise\PromiseInterface $response ) Gets the relevant data from the Guzzle clients.
getDebugResponse ( ) : array Gets the debug response. Returns empty array if no response found.
getHttpStatusCode ( ) : null | integer Gets the HTTP status code.
getRequestUrl ( ) : string Gets the request URI used to get the response.

Описание методов

__construct() публичный Метод

Gets the relevant data from the Guzzle clients.
public __construct ( 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

getDebugResponse() публичный Метод

Gets the debug response. Returns empty array if no response found.
public getDebugResponse ( ) : array
Результат array

getHttpStatusCode() публичный Метод

It return NULL if the request was asynchronous since we are not waiting for the response.
public getHttpStatusCode ( ) : null | integer
Результат null | integer

getRequestUrl() публичный Метод

Gets the request URI used to get the response.
public getRequestUrl ( ) : string
Результат string

Описание свойств

$httpStatusCode защищенное свойство

HTTP status code for the response.
protected null|int $httpStatusCode
Результат null | integer

$requestUrl защищенное свойство

Request URI that was used to send the hit.
protected string $requestUrl
Результат string

$responseBody защищенное свойство

Response body.
protected string $responseBody
Результат string