Documentation

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

$browseName

protected string $browseName

$description

protected string $description = ''

$displayName

protected string $displayName

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

OPC UA ObjectType NodeClass CreateObjectTypeDTO constructor.

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

  • isAbstract
  • defaultComponents
  • modelingRule

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