Skip to content
PHP Ecosystem
Explore

HistorySummary

API reference › Debug Core › View › History › HistorySummary

final readonly classPHPForge\Debug\View\History\HistorySummary
Sourcesrc/View/History/HistorySummary.php

Typed aggregate view-model for the History index summary header.

PropertyTypeDescriptionDefined by
$statusBuckets readonly constructorlist<HistoryStatusBucket>Non-empty status buckets in display order; empty when no captured request mapped into a known bucket.HistorySummary
$totalRequests readonly constructorintTotal number of captured requests in the manifest.HistorySummary
MethodDescriptionDefined by
__construct()Creates aggregate metrics for the History summary.HistorySummary
fromManifest() staticBuilds the typed summary from the request manifest.HistorySummary
public function __construct(int $totalRequests, array $statusBuckets)

Creates aggregate metrics for the History summary.

Parameters

ParameterTypeDescription
$totalRequestsint
$statusBucketsarray
public static function fromManifest(array<array-key, PHPForge\Debug\Storage\RequestSummary> $manifest): self

Builds the typed summary from the request manifest.

Parameters

ParameterTypeDescription
$manifestarray<array-key, PHPForge\Debug\Storage\RequestSummary>Manifest entries; only the values are read.

Returns

self