HtmlAttributeRenderer
Table of Contents
Properties
- $nameCache : array<class-string, array<string, string>>
- $nestedCache : array<NodeAttributes>, array<int, string>>
Methods
- renderAttributes() : string
- renderObjectProperties() : array<int, string>
- resolveHtmlNames() : array<string, string>
- resolveNestedNames() : array<int, string>
Properties
$nameCache
private
array<class-string, array<string, string>>
$nameCache
= []
$nestedCache
private
array<NodeAttributes>, array<int, string>>
$nestedCache
= []
Methods
renderAttributes()
private
renderAttributes(Node $node) : string
Parameters
- $node : Node
Return values
stringrenderObjectProperties()
private
renderObjectProperties(object $object) : array<int, string>
Parameters
- $object : object
Return values
array<int, string>resolveHtmlNames()
private
resolveHtmlNames(object $attributes) : array<string, string>
Parameters
- $attributes : object
Return values
array<string, string> —Map of IDL property name to HTML attribute name
resolveNestedNames()
private
resolveNestedNames(NodeAttributes $attributes) : array<int, string>
Parameters
- $attributes : NodeAttributes
Return values
array<int, string> —Property names marked with #[NestedAttributes]