Skip to content
PHP Ecosystem
Explore

DumpRow

API reference › Debug Core › Panel › Dump › DumpRow

final readonly classPHPForge\Debug\Panel\Dump\DumpRow
ImplementsPHPForge\Debug\Storage\PanelRow
Sourcesrc/Panel/Dump/DumpRow.php

Typed dump row narrowed once from the Yii logger tuple and persisted in that form.

PropertyTypeDescriptionDefined by
$category readonly constructorstringLog category attached to the dump call.DumpRow
$level readonly constructorintLogger level constant (LogLevel).DumpRow
$message readonly constructorstringHighlighted dump payload as produced by the Dump collector varDump() pipeline.DumpRow
$time readonly constructorfloatCapture timestamp in milliseconds since the Unix epoch.DumpRow
$trace readonly constructorlist<array<string, mixed>>Backtrace frames captured at the dump call site.DumpRow
MethodDescriptionDefined by
__construct()Creates a dump row from its captured log data.DumpRow
fromArray() staticNarrows one persisted dump of the dump payload into a typed row.DumpRow
fromLoggerTuple() staticConverts one canonical logger tuple into a typed row.DumpRow
jsonSerialize()Returns the typed row for JSON serialization.DumpRow
public function __construct(string $message, int $level, string $category, float $time, array $trace)

Creates a dump row from its captured log data.

Parameters

ParameterTypeDescription
$messagestring
$levelint
$categorystring
$timefloat
$tracearray
public static function fromArray(mixed $data, string $path): self

Narrows one persisted dump of the dump payload into a typed row.

Parameters

ParameterTypeDescription
$datamixedPersisted dump, expected to be an object carrying the declared shape.
$pathstringJSON path of the dump, used to report a malformed payload.

Returns

self: Row carrying every persisted dump field.

public static function fromLoggerTuple(PHPForge\Debug\Panel\Dump\LogTuple $message): self

Converts one canonical logger tuple into a typed row.

Parameters

ParameterTypeDescription
$messagePHPForge\Debug\Panel\Dump\LogTupleLogger tuple [message, level, category, timestamp, traces].

Returns

self

public function jsonSerialize(): array<string, mixed>

Returns the typed row for JSON serialization.

Returns

array<string, mixed>