ClassNode
in package
implements
NodeInterface
Dump node for objects/class instances.
Table of Contents
Interfaces
- NodeInterface
- Interface for Debugs
Properties
- $class : string
- $id : int
- $properties : array<string|int, PropertyNode>
Methods
- __construct() : mixed
- Constructor
- addProperty() : void
- Add a property
- getChildren() : array<string|int, PropertyNode>
- Get property nodes
- getId() : int
- Get the reference id
- getValue() : string
- Get the class name
Properties
$class
private
string
$class
$id
private
int
$id
$properties
private
array<string|int, PropertyNode>
$properties
= []
Methods
__construct()
Constructor
public
__construct(string $class, int $id) : mixed
Parameters
- $class : string
-
The class name
- $id : int
-
The reference id of this object in the DumpContext
addProperty()
Add a property
public
addProperty(PropertyNode $node) : void
Parameters
- $node : PropertyNode
-
The property to add.
getChildren()
Get property nodes
public
getChildren() : array<string|int, PropertyNode>
Return values
array<string|int, PropertyNode>getId()
Get the reference id
public
getId() : int
Return values
intgetValue()
Get the class name
public
getValue() : string