PHP 클래스 TheIconic\Tracking\GoogleAnalytics\AnalyticsResponse

Represents the response got from GA.
파일 보기 프로젝트 열기: theiconic/php-ga-measurement-protocol 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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