DumpRow
API reference › Debug Core › Panel › Dump › DumpRow
Typed dump row narrowed once from the Yii logger tuple and persisted in that form.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$category readonly constructor | string | Log category attached to the dump call. | DumpRow |
$level readonly constructor | int | Logger level constant (LogLevel). | DumpRow |
$message readonly constructor | string | Highlighted dump payload as produced by the Dump collector varDump() pipeline. | DumpRow |
$time readonly constructor | float | Capture timestamp in milliseconds since the Unix epoch. | DumpRow |
$trace readonly constructor | list<array<string, | Backtrace frames captured at the dump call site. | DumpRow |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a dump row from its captured log data. | DumpRow |
fromArray() static | Narrows one persisted dump of the dump payload into a typed row. | DumpRow |
fromLoggerTuple() static | Converts one canonical logger tuple into a typed row. | DumpRow |
jsonSerialize() | Returns the typed row for JSON serialization. | DumpRow |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $message, int $level, string $category, float $time, array $trace)Creates a dump row from its captured log data.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | |
$level | int | |
$category | string | |
$time | float | |
$trace | array |
fromArray()
Section titled “fromArray() ”public static function fromArray(mixed $data, string $path): selfNarrows one persisted dump of the dump payload into a typed row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed | Persisted dump, expected to be an object carrying the declared shape. |
$path | string | JSON path of the dump, used to report a malformed payload. |
Returns
self: Row carrying every persisted dump field.
fromLoggerTuple()
Section titled “fromLoggerTuple() ”public static function fromLoggerTuple(PHPForge\Debug\Panel\Dump\LogTuple $message): selfConverts one canonical logger tuple into a typed row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | PHPForge\ | Logger tuple [message,. |
Returns
self
jsonSerialize()
Section titled “jsonSerialize() ”public function jsonSerialize(): array<string, mixed>Returns the typed row for JSON serialization.
Returns
array<string, mixed>