Inttegro PHP SDK

HTTPReportContext
in package
implements JsonSerializable

FinalYes

Privacy-safe HTTP metadata for a failed SDK operation.

Table of Contents

Interfaces

JsonSerializable

Properties

$durationMs  : int
Total operation duration in milliseconds.
$method  : string
Static HTTP method.
$requestId  : string|null
Server request identifier used for correlation.
$route  : string|null
Static route template, when available.
$serverAddress  : string
API server address without credentials, query strings, or resource identifiers.
$statusCode  : int|null
HTTP status code when the server returned a response.

Methods

__construct()  : mixed
jsonSerialize()  : array<string, int|string>

Properties

$durationMs read-only

Total operation duration in milliseconds.

public int $durationMs

$requestId read-only

Server request identifier used for correlation.

public string|null $requestId = null

$route read-only

Static route template, when available.

public string|null $route = null

$serverAddress read-only

API server address without credentials, query strings, or resource identifiers.

public string $serverAddress

$statusCode read-only

HTTP status code when the server returned a response.

public int|null $statusCode = null

Methods

__construct()

public __construct(string $method, string $serverAddress, int $durationMs[, string|null $route = null ][, int|null $statusCode = null ][, string|null $requestId = null ]) : mixed
Parameters
$method : string

Static HTTP method.

$serverAddress : string

API server address without credentials or resource identifiers.

$durationMs : int

Total operation duration in milliseconds.

$route : string|null = null

Static route template, when available.

$statusCode : int|null = null

HTTP response status, when a response arrived.

$requestId : string|null = null

Server request identifier, when available.

jsonSerialize()

public jsonSerialize() : array<string, int|string>
Return values
array<string, int|string> —

JSON-safe HTTP failure metadata with null fields omitted.

On this page

Search results