DeepTypeTrait
trait DeepTypeTrait (View source)
Shared code for working with deeply-nested elements for types.
Properties
protected string | $namespaceAlias | The preferred alias for a particular XML Namespace URI. |
Methods
getScalarSingleValue(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are simple scalars, and there is only one allowed value.
getComplexSingleValue(object $root, string $nodeName, string $className, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there is only one allowed value.
iterable
getComplexMultipleValues(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there may be are more than one value.
Details
at line 40
protected Node
getScalarSingleValue(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are simple scalars, and there is only one allowed value.
at line 68
protected TypeInterface
getComplexSingleValue(object $root, string $nodeName, string $className, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there is only one allowed value.
at line 96
protected iterable
getComplexMultipleValues(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there may be are more than one value.