Property
extends Variable
in package
OPC UA defines Properties as a special kind of Variable (see Part 3, Section 5.6.3) used to provide metadata about other nodes. Properties are implemented as Variables with additional usage restrictions, such as typically being read-only and having unique BrowseNames within their parent context.
Tags
Table of Contents
Properties
- $nodeClass : string
- $browseName : string
- $dataType : string
- $description : string
- $displayName : string
- $nodeId : string
- $value : string
Methods
- __construct() : mixed
- Variables hold a value along with metadata such as timestamps and status.
- toArray() : array<string|int, mixed>
- Converts the node and its attributes to an associative array.
Properties
$nodeClass
public
string
$nodeClass
$browseName
protected
string
$browseName
$dataType
protected
string
$dataType
$description
protected
string
$description
= ''
$displayName
protected
string
$displayName
$nodeId
protected
string
$nodeId
$value
protected
string
$value
= ''
Methods
__construct()
Variables hold a value along with metadata such as timestamps and status.
public
__construct(string $parentNodeId, string $browseName, string $displayName, string $dataType[, string $description = '' ][, mixed $value = '' ]) : mixed
Parameters
- $parentNodeId : string
-
- Unique identifier for the Parent Variable node.
- $browseName : string
-
- The non-localized BrowseName used for OPC UA navigation.
- $displayName : string
-
- The localized name to display to users.
- $dataType : string
-
- The NodeId of the DataType for the variable's value.
- $description : string = ''
-
- Optional description of the variable.
- $value : mixed = ''
-
- The current or default value of the variable.
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.