Documentation

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

$browseName

protected string $browseName

$description

protected string $description = ''

$displayName

protected string $displayName

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
see
https://reference.opcfoundation.org/Core/Part3/v104/docs/5.6.5

OPC UA VariableType NodeClass

For the purposes of compatibility with the OPC UA Web API we have left out the following attributes:

  • dataType
  • valueRank
  • arrayDimensions
  • value
  • isAbstract

We are currently supporting the following:

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.


        
On this page

Search results