XsdAttributeDefinition
in package
implements
JsonSerializable
XsdAttributeDefinition
This class represents the definition of an XML attribute.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $annotation : string
- $autocomplete : array<string|int, mixed>
- $default : string
- $generate : string
- $group : string
- $lookup : string
- $name : string
- $type : XsdSimpleTypeDefinition|XsdBaseTypeDefinition
- $use : string
- $_node : XmlNode
- The attribute node.
- $_schema : XsdSchemaDefinition
- The schema.
Methods
- __construct() : mixed
- Constructor.
- __get() : mixed|null
- Getter.
- jsonSerialize() : object
- Returns the object for JSON serialization.
- ToObject() : object
- Returns the object as a simple object.
Properties
$annotation read-only
public
string
$annotation
The annotation of the attribute element.
$autocomplete read-only
public
array<string|int, mixed>
$autocomplete
The list of values for autocomplete functionality.
$default read-only
public
string
$default
The default value of the attribute.
$generate read-only
public
string
$generate
The command for generating the element.
$group read-only
public
string
$group
The group to which the attribute belongs.
$lookup read-only
public
string
$lookup
The command for generating inter-object relationships.
$name read-only
public
string
$name
The name of the attribute element.
$type read-only
public
XsdSimpleTypeDefinition|XsdBaseTypeDefinition
$type
The type of the attribute element.
$use read-only
public
string
$use
The usage of the attribute.
$_node
The attribute node.
private
XmlNode
$_node
$_schema
The schema.
private
XsdSchemaDefinition
$_schema
Methods
__construct()
Constructor.
public
__construct(XmlNode $attributeNode, XsdSchemaDefinition $schema) : mixed
Parameters
- $attributeNode : XmlNode
-
The attribute node.
- $schema : XsdSchemaDefinition
-
The schema.
__get()
Getter.
public
__get(string $name) : mixed|null
Parameters
- $name : string
-
The property name.
Return values
mixed|null —The value of the property.
jsonSerialize()
Returns the object for JSON serialization.
public
jsonSerialize() : object
Return values
object —The object representation of XsdAttributeDefinition.
ToObject()
Returns the object as a simple object.
public
ToObject() : object
Return values
object —The simple object representation of XsdAttributeDefinition.