PayloadTypes
in
The payload types of one GEDCOM version for ValueRule. A type is one alternative of a structure's payload: a 7.0 type URI, a 5.x element such as "<SEX_VALUE>", or "Y".
Table of Contents
Methods
- isOptional() : bool
- Whether the type allows an empty payload without saying so with "<NULL>".
- problems() : array<int, Severity, string}>
- Why the value is not of the type: code, severity and a message that follows the tag.
- requiresContent() : bool
- Whether a structure needs a value or a substructure (KV3007).
Methods
isOptional()
Whether the type allows an empty payload without saying so with "<NULL>".
public
isOptional(string $type) : bool
Parameters
- $type : string
Return values
boolproblems()
Why the value is not of the type: code, severity and a message that follows the tag.
public
problems(Structure $structure, string $type, string $value) : array<int, Severity, string}>
Parameters
- $structure : Structure
- $type : string
- $value : string
Return values
array<int, Severity, string}> —empty when the value is of the type
requiresContent()
Whether a structure needs a value or a substructure (KV3007).
public
requiresContent() : bool