ValidationOptions
in package
Read onlyYes
FinalYes
Which diagnostics a validation reports and how severe they are.
Table of Contents
Properties
- $disabled : array<string|int, mixed>
- $plausibility : bool
- $severities : array<string|int, mixed>
Methods
- __construct() : mixed
- withDisabled() : self
- Leaves these codes (e.g. "KV2001") out of the report.
- withPlausibility() : self
- Also runs the plausibility checks (KV5xxx): births after deaths, cycles in the pedigree and the like.
- withSeverity() : self
- Reports a code with another severity, e.g. a warning as an error.
Properties
$disabled
public
array<string|int, mixed>
$disabled
= []
$plausibility
public
bool
$plausibility
= false
$severities
public
array<string|int, mixed>
$severities
= []
Methods
__construct()
public
__construct([array<string, true> $disabled = [] ][, array<string, Severity> $severities = [] ][, bool $plausibility = false ]) : mixed
Parameters
- $disabled : array<string, true> = []
-
codes left out of the report
- $severities : array<string, Severity> = []
-
codes reported with another severity
- $plausibility : bool = false
-
whether the optional plausibility checks (KV5xxx) run
withDisabled()
Leaves these codes (e.g. "KV2001") out of the report.
public
withDisabled(string ...$codes) : self
Parameters
- $codes : string
Return values
selfwithPlausibility()
Also runs the plausibility checks (KV5xxx): births after deaths, cycles in the pedigree and the like.
public
withPlausibility([bool $plausibility = true ]) : self
Parameters
- $plausibility : bool = true
Return values
selfwithSeverity()
Reports a code with another severity, e.g. a warning as an error.
public
withSeverity(string $code, Severity $severity) : self
Parameters
- $code : string
- $severity : Severity