XMLNode
Read onlyYes
FinalYes
Properties
- $attributes : array<string|int, mixed>
- $children : array<string|int, mixed>
- $name : string
- $type : XMLNodeType
- $value : string|null
Methods
- append() : self
- appendAttribute() : self
- appendChild() : self
- flatNode() : self
- hasChildren() : bool
- hasValue() : bool
- nestedNode() : self
Properties
$attributes
public
array<string|int, mixed>
$attributes
= []
$children
public
array<string|int, mixed>
$children
= []
$name
public
string
$name
$type
public
XMLNodeType
$type
$value
public
string|null
$value
Methods
append()
public
append(self|XMLAttribute $element) : self
Parameters
- $element : self|XMLAttribute
Return values
selfappendAttribute()
public
appendAttribute(XMLAttribute $attribute) : self
Parameters
- $attribute : XMLAttribute
Return values
selfappendChild()
public
appendChild(self $child) : self
Parameters
- $child : self
Return values
selfflatNode()
public
static flatNode(string $name, string|null $value) : self
Parameters
- $name : string
- $value : string|null
Return values
selfhasChildren()
public
hasChildren() : bool
Return values
boolhasValue()
public
hasValue() : bool
Return values
boolnestedNode()
public
static nestedNode(string $name) : self
Parameters
- $name : string