DataType
extends BaseNode
in package
FinalYes
Table of Contents
Properties
- $nodeClass : string
- $browseName : string
- $description : string
- $displayName : string
- $enumFields : array<string|int, mixed>
- $nodeId : string
Methods
- __construct() : mixed
- According to the OPC UA specification, DataType nodes describe the syntax of a Variable’s value. In addition to the base attributes, a DataType node has:
- toArray() : array<string|int, mixed>
- Converts the node and its attributes to an associative array.
Properties
$nodeClass
public
string
$nodeClass
$browseName
protected
string
$browseName
$description
protected
string
$description
= ''
$displayName
protected
string
$displayName
$enumFields
protected
array<string|int, mixed>
$enumFields
= []
$nodeId
protected
string
$nodeId
Methods
__construct()
According to the OPC UA specification, DataType nodes describe the syntax of a Variable’s value. In addition to the base attributes, a DataType node has:
public
__construct(string $nodeId, string $browseName, string $displayName[, string $description = '' ][, array<string|int, mixed> $enumFields = [] ]) : mixed
- isAbstract: A boolean indicating whether the DataType is abstract.
- encodings: An array of encoding names (for example, "Default Binary" or "Default XML") that define how instances of the DataType can be serialized.
- enumStrings (optional): For enumeration DataTypes, an array of human‐readable strings corresponding to each enumeration value.
Parameters
- $nodeId : string
-
- Unique identifier for the DataType node.
- $browseName : string
-
- The non-localized name used for browsing the node.
- $displayName : string
-
- The localized name displayed to users.
- $description : string = ''
-
- Optional description of the DataType.
- $enumFields : array<string|int, mixed> = []
Tags
toArray()
Converts the node and its attributes to an associative array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —The node represented as an associative array.