Skip to content
PHP Ecosystem
Explore

DumpEntry

API reference › Debug Core › Panel › Log › DumpEntry

final readonly classPHPForge\Debug\Panel\Log\DumpEntry
Sourcesrc/Panel/Log/DumpEntry.php

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.

PropertyTypeDescriptionDefined by
$declaringClass readonly constructorstringClass declaring a private property; '' otherwise. Default: ''.DumpEntry
$key readonly constructorstringArray key or property name.DumpEntry
$value readonly constructorDumpNodeValue associated with the key.DumpEntry
$visibility readonly constructorstringprotected, private, or '' for a public property or an array key. Default: ''.DumpEntry
MethodDescriptionDefined by
__construct()Creates a dump-tree entry with its key, value, and visibility.DumpEntry
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

ParameterTypeDescription
$keystringArray key or property name.
$valueDumpNodeValue associated with the key.
$visibilitystringprotected, private, or '' for a public property or an array key.
$declaringClassstringClass declaring a private property; '' otherwise.