AstSortChildrenVisitor implements AstVisitorInterface
FinalYes
Sort all children alphabetically. Used in backend Object Browser.
Tags
Table of Contents
Interfaces
- AstVisitorInterface
- An interface implemented by all visitors of AstTraverser.
Methods
- visit() : void
- visitAfterChildren() : void
- visitBeforeChildren() : void
Methods
visit()
public
visit(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int
visitAfterChildren()
public
visitAfterChildren(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int
visitBeforeChildren()
public
visitBeforeChildren(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int