ElementNameResolver
extends NodeVisitorAbstract
in package
FinalYes
Table of Contents
Properties
- $parts : SplDoublyLinkedList<string|int, Identifier|string|null>
Methods
- __construct() : mixed
- beforeTraverse() : mixed
- Resets the object to a known state before start processing.
- enterNode() : int|null
- Adds fqsen property to a node when applicable.
- leaveNode() : mixed
- Performs a reset of the added element when needed.
- buildName() : string
- Builds the name of the current node using the parts that are pushed to the parts list.
- resetState() : void
- Resets the state of the object to an empty state.
- setFqsen() : void
Properties
$parts
private
SplDoublyLinkedList<string|int, Identifier|string|null>
$parts
Methods
__construct()
public
__construct() : mixed
beforeTraverse()
Resets the object to a known state before start processing.
public
beforeTraverse(array<string|int, mixed> $nodes) : mixed
Parameters
- $nodes : array<string|int, mixed>
Tags
Attributes
- #[Override]
enterNode()
Adds fqsen property to a node when applicable.
public
enterNode(Node $node) : int|null
Parameters
- $node : Node
Attributes
- #[Override]
Return values
int|nullleaveNode()
Performs a reset of the added element when needed.
public
leaveNode(Node $node) : mixed
Parameters
- $node : Node
Tags
Attributes
- #[Override]
buildName()
Builds the name of the current node using the parts that are pushed to the parts list.
private
buildName() : string
Return values
stringresetState()
Resets the state of the object to an empty state.
private
resetState([string|null $namespace = null ]) : void
Parameters
- $namespace : string|null = null
setFqsen()
private
setFqsen(Node $node) : void
Parameters
- $node : Node