Node class
From Sunhill Framework Documentation
The Node class represents a single entry in the abstract structure tree (AST) that is built while parsing. The class Node is a prototype for the child classes but it could be used directly.
Public functions
It defines the following public functions
__construct(string $type, array $children)
Creates a new node with the given type and the given children
getType(): string
Returns the type of the node
getChildren(): array
Returns the current set children.