function DOMCaster::castAttr
File
-
vendor/
symfony/ var-dumper/ Caster/ DOMCaster.php, line 221
Class
- DOMCaster
- Casts DOM related classes to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castAttr(\DOMAttr|\Dom\Attr $dom, array $a, Stub $stub, bool $isNested) : array {
$a += [
'name' => $dom->name,
'specified' => $dom->specified,
'value' => $dom->value,
'ownerElement' => $dom->ownerElement,
];
if ($dom instanceof \DOMAttr) {
$a += [
'schemaTypeInfo' => $dom->schemaTypeInfo,
];
}
return $a;
}