Payloads7
in package
implements
PayloadTypes
Read onlyYes
FinalYes
GEDCOM 7.0 payload types: PayloadGrammar and DateGrammar, enumerations from the profile.
Table of Contents
Interfaces
- PayloadTypes
- 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".
Methods
- __construct() : mixed
- 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
__construct()
public
__construct(Profile $profile[, Schema $schema = new Schema() ]) : mixed
Parameters
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