InMemoryNodeRendererFactory
in package
implements
NodeRendererFactory
Interfaces, Classes and Traits
Table of Contents
- $defaultNodeRenderer : NodeRenderer
- $nodeRenderers : array<class-string, NodeRenderer>
- __construct() : mixed
- get() : NodeRenderer
Properties
$defaultNodeRenderer
private
NodeRenderer
$defaultNodeRenderer
$nodeRenderers
private
array<class-string, NodeRenderer>
$nodeRenderers
Methods
__construct()
public
__construct(array<class-string, NodeRenderer> $nodeRenderers, NodeRenderer $defaultNodeRenderer) : mixed
Parameters
- $nodeRenderers : array<class-string, NodeRenderer>
- $defaultNodeRenderer : NodeRenderer
Return values
mixed —get()
public
get(string $node) : NodeRenderer
Parameters
- $node : string