final class FragmentNode extends AreaNode

Container for sequence of child nodes.

Properties

AreaNode[] $children

Methods

__construct(array $children = [])

No description

append(AreaNode $node)

Appends a node. FragmentNode children are merged inline; NopNodes are discarded.

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
print(PrintContext $context)

No description

getIterator()

No description

Details

at line 25
__construct(array $children = [])

No description

Parameters

array $children

at line 36
FragmentNode append(AreaNode $node)

Appends a node. FragmentNode children are merged inline; NopNodes are discarded.

Parameters

AreaNode $node

Return Value

FragmentNode

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.

Parameters

bool $allowsNull

Return Value

AreaNode|null

at line 61
string print(PrintContext $context)

No description

Parameters

PrintContext $context

Return Value

string

at line 72
Generator getIterator()

No description

Return Value

Generator