PHP Interface Twig_NodeVisitorInterface, php-framework-benchmarks

Author: Fabien Potencier ([email protected])
Show file Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
enterNode ( Twig_NodeInterface $node, Twig_Environment $env ) Called before child nodes are visited.
getPriority ( ) Returns the priority.
leaveNode ( Twig_NodeInterface $node, Twig_Environment $env ) Called after child nodes are visited.

Method Details

enterNode() public method

Called before child nodes are visited.
public enterNode ( Twig_NodeInterface $node, Twig_Environment $env )
$node Twig_NodeInterface The node to visit
$env Twig_Environment The Twig environment instance

getPriority() public method

Returns the priority.
public getPriority ( )

leaveNode() public method

Called after child nodes are visited.
public leaveNode ( Twig_NodeInterface $node, Twig_Environment $env )
$node Twig_NodeInterface The node to visit
$env Twig_Environment The Twig environment instance