IncludeTreeConditionIncludeListAccumulatorVisitor implements IncludeTreeVisitorInterface
FinalYes
This is used in FE to "gather" condition nodes as a flat tree (root + condition nodes).
The FE uses this optimized tree to quickly determine condition verdicts without loading the full tree.
Tags
Attributes
- #[Autoconfigure]
- $public: true
- $shared: false
Table of Contents
Interfaces
- IncludeTreeVisitorInterface
- A visitor that can be attached to IncludeTreeTraverser's.
Methods
- __construct() : mixed
- getConditionIncludes() : RootInclude
- visit() : void
- Main visit method called for each node.
- visitBeforeChildren() : void
- Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).
Methods
__construct()
public
__construct() : mixed
getConditionIncludes()
public
getConditionIncludes() : RootInclude
Return values
RootIncludevisit()
Main visit method called for each node.
public
visit(IncludeInterface $include, int $currentDepth) : void
Parameters
- $include : IncludeInterface
- $currentDepth : int
visitBeforeChildren()
Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).
public
visitBeforeChildren(IncludeInterface $include, int $currentDepth) : void
Parameters
- $include : IncludeInterface
- $currentDepth : int