Skip to content
PHP Ecosystem
Explore

HistoryStatusBucket

API reference › Debug Core › View › History › HistoryStatusBucket

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

Typed view-model for one status-code bucket shown in the History summary header (‘2xx’, ‘3xx’, ‘4xx’, ‘5xx’).

PropertyTypeDescriptionDefined by
$count readonly constructorintNumber of captured requests in this bucket.HistoryStatusBucket
$label readonly constructorstringDisplay label (‘2xx’ / ‘3xx’ / ‘4xx’ / ‘5xx’).HistoryStatusBucket
$sampleCode readonly constructorintRepresentative status code from the bucket — used by the pill link’s deep-link filter so clicking lands the grid on a real example.HistoryStatusBucket
$variant readonly constructorstringSemantic vocabulary status-class suffix (‘2xx’ / ‘3xx’ / ‘4xx’ / ‘5xx’).HistoryStatusBucket
MethodDescriptionDefined by
__construct()Creates a status-code bucket for the History summary.HistoryStatusBucket
public function __construct(string $label, int $count, int $sampleCode, string $variant)

Creates a status-code bucket for the History summary.

Parameters

ParameterTypeDescription
$labelstring
$countint
$sampleCodeint
$variantstring