HtmlDecorator
in package
implements
NodeRendererInterface
FinalYes
Table of Contents
Interfaces
Properties
- $attributes : array<string, string|array<string|int, string>|bool>
- $inner : NodeRendererInterface
- $selfClosing : bool
- $tag : string
Methods
- __construct() : mixed
- render() : Stringable|string|null
Properties
$attributes
private
array<string, string|array<string|int, string>|bool>
$attributes
$inner
private
NodeRendererInterface
$inner
$selfClosing
private
bool
$selfClosing
$tag
private
string
$tag
Methods
__construct()
public
__construct(NodeRendererInterface $inner, string $tag[, array<string, string|array<string|int, string>|bool> $attributes = [] ][, bool $selfClosing = false ]) : mixed
Parameters
- $inner : NodeRendererInterface
- $tag : string
- $attributes : array<string, string|array<string|int, string>|bool> = []
- $selfClosing : bool = false
render()
public
render(Node $node, ChildNodeRendererInterface $childRenderer) : Stringable|string|null
Parameters
- $node : Node
- $childRenderer : ChildNodeRendererInterface