HistoryStatusBucket
API reference › Debug Core › View › History › HistoryStatusBucket
Typed view-model for one status-code bucket shown in the History summary header (‘2xx’, ‘3xx’, ‘4xx’, ‘5xx’).
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$count readonly constructor | int | Number of captured requests in this bucket. | HistoryStatusBucket |
$label readonly constructor | string | Display label (‘2xx’ / ‘3xx’ / ‘4xx’ / ‘5xx’). | HistoryStatusBucket |
$sampleCode readonly constructor | int | Representative 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 constructor | string | Semantic vocabulary status-class suffix (‘2xx’ / ‘3xx’ / ‘4xx’ / ‘5xx’). | HistoryStatusBucket |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a status-code bucket for the History summary. | HistoryStatusBucket |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $label, int $count, int $sampleCode, string $variant)Creates a status-code bucket for the History summary.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | |
$count | int | |
$sampleCode | int | |
$variant | string |