XmlAttribute
in package
XmlAttribute
This class represents an XML attribute.
Table of Contents
Properties
- $name : string
- $raw : DOMNode
- $type : string
- $value : string
- $_data : mixed
- The object containing the DOMNode of the attribute.
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Getter
- __set() : void
- Setter
- Remove() : void
- Removes the attribute.
Properties
$name read-only
public
string
$name
The name of the attribute.
$raw read-only
public
DOMNode
$raw
The raw node.
$type read-only
public
string
$type
The type of the attribute.
$value
public
string
$value
The value of the attribute.
$_data
The object containing the DOMNode of the attribute.
private
mixed
$_data
Methods
__construct()
Constructor
public
__construct(DOMNode $data) : mixed
Parameters
- $data : DOMNode
-
The raw node for initializing the wrapper.
__get()
Getter
public
__get(string $property) : mixed
Parameters
- $property : string
-
The name of the property.
__set()
Setter
public
__set(string $property, string $value) : void
Parameters
- $property : string
-
The name of the property.
- $value : string
-
The value of the property.
Remove()
Removes the attribute.
public
Remove() : void