VariableType
extends BaseNode
in package
FinalYes
Table of Contents
Properties
- $nodeClass : string
- $browseName : string
- $description : string
- $displayName : string
- $nodeId : string
Methods
- __construct() : mixed
- A VariableType defines a template for Variables and specifies:
- 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
$nodeId
protected
string
$nodeId
Methods
__construct()
A VariableType defines a template for Variables and specifies:
public
__construct(string $nodeId, string $browseName, string $displayName[, string $description = '' ]) : mixed
- dataType: The NodeId of the data type definition for the variable's value.
- valueRank: An integer indicating the dimensions of the variable's value:
- -1: Scalar
- 1: One-dimensional array
- 0: One or more dimensions
- -2: Any
- -3: Scalar or one-dimensional
- arrayDimensions: (Optional) An array defining the length of each dimension if the value is an array.
- value: (Optional) The default value that instances of this VariableType should have.
- isAbstract: A boolean indicating whether the VariableType is abstract (i.e. it cannot be directly instantiated).
Parameters
- $nodeId : string
-
- The unique identifier for the ObjectType node.
- $browseName : string
-
- The non-localized BrowseName used in address space navigation.
- $displayName : string
-
- The localized name to display to users.
- $description : string = ''
-
- An optional description of the ObjectType.
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.