XsdSimpleTypeDefinition
in package
implements
JsonSerializable
XsdSimpleTypeDefinition
Represents a simple data type.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $annotation : string
- $attributes : object
- $name : string
- $restrictions : object
- $_node : XmlNode|null
- The type node.
- $_schema : XsdSchemaDefinition|null
- The schema.
Methods
- __construct() : mixed
- Constructor.
- __get() : mixed
- Getter.
- jsonSerialize() : object
- Returns the data as a plain object for JSON serialization.
- ToObject() : object
- Returns the data as a plain object.
Properties
$annotation read-only
public
string
$annotation
The annotation of the type.
$attributes read-only
public
object
$attributes
The attributes of the type.
$name read-only
public
string
$name
The name of the type.
$restrictions read-only
public
object
$restrictions
The restrictions of the type.
$_node
The type node.
private
XmlNode|null
$_node
$_schema
The schema.
private
XsdSchemaDefinition|null
$_schema
Methods
__construct()
Constructor.
public
__construct(XmlNode|null $typeNode) : mixed
Parameters
- $typeNode : XmlNode|null
-
The XML node representing the type.
__get()
Getter.
public
__get(string $property) : mixed
Parameters
- $property : string
-
The name of the property.
jsonSerialize()
Returns the data as a plain object for JSON serialization.
public
jsonSerialize() : object
Return values
objectToObject()
Returns the data as a plain object.
public
ToObject() : object