Element Class

class Element

Represents an element

Implements RelatableInterface

__construct(string $name, string $type, ?string $docRef = null)

Creates an Element

Parameters:
  • $name (string) – The element name

  • $type (string) – The element user defined type

  • $docRef (?string) – User defined document reference (default: no reference)

Returns:

A new instance of Element

Return type:

Element