ObjectType
extends BaseNode
in package
FinalYes
Table of Contents
Properties
- $nodeClass : string
- $browseName : string
- $description : string
- $displayName : string
- $nodeId : string
Methods
- __construct() : mixed
- ObjectTypes in OPC UA serve as templates for Objects and define the mandatory and optional components (e.g. properties, methods) that instances of the type must or can have.
- 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()
ObjectTypes in OPC UA serve as templates for Objects and define the mandatory and optional components (e.g. properties, methods) that instances of the type must or can have.
public
__construct(string $nodeId, string $browseName, string $displayName[, string $description = '' ]) : mixed
An ObjectType node includes the following additional attributes:
- isAbstract: A boolean flag indicating whether the ObjectType is abstract (i.e. it cannot be directly instantiated).
- defaultComponents: An array of definitions for the components (e.g., Properties, Methods, or child Objects) that instances of this ObjectType should include.
- modelingRule (optional): A string specifying the modeling rule that governs how the ObjectType’s components are 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.