Skip to content
PHP Ecosystem
Explore

HistoryRow

API reference › Debug Core › View › History › HistoryRow

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

Typed view-model for one captured-request row in the History grid.

PropertyTypeDescriptionDefined by
$ajax readonly constructorbooltrue when the captured request was an AJAX request.HistoryRow
$excessiveCallersCount readonly constructorintNumber of callers issuing too many DB calls. ‘0’ when not flagged.HistoryRow
$ip readonly constructorstringClient IP address. Empty when not captured.HistoryRow
$mailCount readonly constructorintNumber of mail messages sent during the request. ‘0’ when not captured.HistoryRow
$method readonly constructorstringHTTP method (‘GET’, ‘POST’, …) or ‘COMMAND’ for console runs. Empty when not captured.HistoryRow
$peakMemory readonly constructorint|nullPeak memory in bytes; null when not captured.HistoryRow
$processingTime readonly constructorfloat|nullProcessing time in seconds (float); null when not captured.HistoryRow
$sqlCount readonly constructorintNumber of SQL queries executed during the request. ‘0’ when not captured.HistoryRow
$statusCode readonly constructorintResponse status code; 0 when not captured.HistoryRow
$tag readonly constructorstringRequest tag (hex hash); empty when not captured.HistoryRow
$time readonly constructorfloatRequest timestamp (unix seconds, may be float for sub-second precision); ‘0.0’ when not captured.HistoryRow
$timeCompact readonly constructorstringFormatted compact time (‘HH:MM:SS’); empty when $time === 0.0.HistoryRow
$url readonly constructorstringFull request URL. Empty when not captured.HistoryRow
MethodDescriptionDefined by
__construct()Creates a captured-request row for the History grid.HistoryRow
fromSummary() staticProjects a manifest entry into the row the History grid renders.HistoryRow
public function __construct(string $tag, string $method, string $url, int $statusCode, float $time, string $timeCompact, float|null $processingTime, int|null $peakMemory, string $ip, int $sqlCount, int $mailCount, int $excessiveCallersCount, bool $ajax)

Creates a captured-request row for the History grid.

Parameters

ParameterTypeDescription
$tagstring
$methodstring
$urlstring
$statusCodeint
$timefloat
$timeCompactstring
$processingTimefloat|null
$peakMemoryint|null
$ipstring
$sqlCountint
$mailCountint
$excessiveCallersCountint
$ajaxbool
public static function fromSummary(PHPForge\Debug\Storage\RequestSummary $summary): self

Projects a manifest entry into the row the History grid renders.

Parameters

ParameterTypeDescription
$summaryPHPForge\Debug\Storage\RequestSummary

Returns

self