DumpEntry
API reference › Debug Core › Panel › Log › DumpEntry
Represents one key and its value inside an array, object, or enum block of a dump tree.
Only the property keys of a print_r() object or enum dump, stdClass excluded, carry a visibility.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$declaringClass readonly constructor | string | Class declaring a private property; '' otherwise. Default: ''. | DumpEntry |
$key readonly constructor | string | Array key or property name. | DumpEntry |
$value readonly constructor | DumpNode | Value associated with the key. | DumpEntry |
$visibility readonly constructor | string | protected, private, or '' for a public property or an array key. Default: ''. | DumpEntry |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a dump-tree entry with its key, value, and visibility. | DumpEntry |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $key, PHPForge\Debug\Panel\Log\DumpNode $value, string $visibility = '', string $declaringClass = '')Creates a dump-tree entry with its key, value, and visibility.
Parameters
| Parameter | Type | Description |
|---|---|---|
$key | string | Array key or property name. |
$value | DumpNode | Value associated with the key. |
$visibility | string | protected, private, or '' for a public property or an array key. |
$declaringClass | string | Class declaring a private property; '' otherwise. |