HistorySummary
API reference › Debug Core › View › History › HistorySummary
Typed aggregate view-model for the History index summary header.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$statusBuckets readonly constructor | list<HistoryStatusBucket> | Non-empty status buckets in display order; empty when no captured request mapped into a known bucket. | HistorySummary |
$totalRequests readonly constructor | int | Total number of captured requests in the manifest. | HistorySummary |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates aggregate metrics for the History summary. | HistorySummary |
fromManifest() static | Builds the typed summary from the request manifest. | HistorySummary |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(int $totalRequests, array $statusBuckets)Creates aggregate metrics for the History summary.
Parameters
| Parameter | Type | Description |
|---|---|---|
$totalRequests | int | |
$statusBuckets | array |
fromManifest()
Section titled “fromManifest() ”public static function fromManifest(array<array-key, PHPForge\Debug\Storage\RequestSummary> $manifest): selfBuilds the typed summary from the request manifest.
Parameters
| Parameter | Type | Description |
|---|---|---|
$manifest | array<array-key, PHPForge\> | Manifest entries; only the values are read. |
Returns
self