Guides

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

Methods

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
inheritDoc
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|null

leaveNode()

Performs a reset of the added element when needed.

public leaveNode(Node $node) : mixed
Parameters
$node : Node
Tags
inheritDoc
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
string

resetState()

Resets the state of the object to an empty state.

private resetState([string|null $namespace = null ]) : void
Parameters
$namespace : string|null = null

        
On this page

Search results