NodeRoot extends NodeBase
Class NodeRoot Present simple collection of child nodes
Table of Contents
Methods
- addChild() : void
- Appends a child to the children collection.
- process() : string
- Calls process for each of it's children.
- setModifiers() : void
- Sets modifiers to be used at the last stage of processing.
Methods
addChild()
Appends a child to the children collection.
public
addChild(NodeBase $child) : void
Parameters
- $child : NodeBase
-
Object to be added as a child.
process()
Calls process for each of it's children.
public
process(Base $entity) : string
Returns concatenation of their results.
Parameters
- $entity : Base
-
Sets the context of processing.
Return values
stringsetModifiers()
Sets modifiers to be used at the last stage of processing.
public
setModifiers(string $modifiers) : void
Parameters
- $modifiers : string
-
String which contains modifiers.