FlowLayout implements Layout
Read onlyYes
FinalYes
Sources first, each node followed by its readers; Outputs is left out.
Interfaces
Methods
- __construct() : mixed
- collect() : void
- render() : string
- reversed() : RenderedNode
Methods
__construct()
public
__construct([TreeLayout $tree = new TreeLayout() ]) : mixed
Parameters
- $tree : TreeLayout = new TreeLayout()
collect()
public
collect(RenderedNode $entry, SplObjectStorage<object, array<int, RenderedNode>> $readers, array<int, RenderedNode> &$sources) : void
Parameters
- $entry : RenderedNode
- $readers : SplObjectStorage<object, array<int, RenderedNode>>
-
every node's readers, in the order the tree visits them
- $sources : array<int, RenderedNode>
-
the entries without inputs, in the order the tree visits them
render()
public
render(RenderedNode $root) : string
Parameters
- $root : RenderedNode
Return values
stringreversed()
public
reversed(RenderedNode $entry, SplObjectStorage<object, array<int, RenderedNode>> $readers, SplObjectStorage<object, true> $placed) : RenderedNode
Parameters
- $entry : RenderedNode
- $readers : SplObjectStorage<object, array<int, RenderedNode>>
- $placed : SplObjectStorage<object, true>
-
the nodes already printed, any later reach is a shared reference