InMemoryNodeRendererFactory
in package
implements
NodeRendererFactory
FinalYes
Table of Contents
Interfaces
Properties
- $cache : array<Node>, NodeRenderer<string|int, Node>>
- $defaultNodeRenderer : NodeRenderer
- $nodeRenderers : iterable<string|int, mixed>
Methods
- __construct() : mixed
- get() : NodeRenderer<string|int, Node>
Properties
$cache
private
array<Node>, NodeRenderer<string|int, Node>>
$cache
= []
$defaultNodeRenderer read-only
private
NodeRenderer
$defaultNodeRenderer
$nodeRenderers read-only
private
iterable<string|int, mixed>
$nodeRenderers
Methods
__construct()
public
__construct(iterable<string|int, NodeRenderer<string|int, Node>> $nodeRenderers, NodeRenderer<string|int, Node> $defaultNodeRenderer) : mixed
Parameters
- $nodeRenderers : iterable<string|int, NodeRenderer<string|int, Node>>
- $defaultNodeRenderer : NodeRenderer<string|int, Node>
get()
public
get(Node $node) : NodeRenderer<string|int, Node>
Parameters
- $node : Node