FragmentNode
final class FragmentNode extends AreaNode
Container for sequence of child nodes.
Properties
| AreaNode[] | $children |
Methods
__construct(array $children = [])
No description
AreaNode|null
simplify(bool $allowsNull = true)
Returns null (or self) for an empty fragment, the single child when there is only one, or self otherwise.
string
getIterator()
No description
Details
at line 25
__construct(array $children = [])
No description
at line 36
FragmentNode
append(AreaNode $node)
Appends a node. FragmentNode children are merged inline; NopNodes are discarded.
at line 51
AreaNode|null
simplify(bool $allowsNull = true)
Returns null (or self) for an empty fragment, the single child when there is only one, or self otherwise.
at line 61
string
print(PrintContext $context)
No description
at line 72
Generator
getIterator()
No description