Documentation

NodeTraverser
in package

A node traverser.

It visits all nodes and their children and calls the given visitor for each.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$env  : mixed
$visitors  : mixed
__construct()  : mixed
addVisitor()  : mixed
traverse()  : Node
Traverses a node and calls the registered visitors.
traverseForVisitor()  : Node|null

Properties

Methods

traverse()

Traverses a node and calls the registered visitors.

public traverse(Node $node) : Node
Parameters
$node : Node
Return values
Node

Search results