Skip to content

ValidatorPlan

Format-independent description of one validator config source (today: one validators.xml file, after XInclude/XSL normalization).

A ValidatorPlan is what any back-end emitter (runtime cache, fluent source, a future CLI’s —check) consumes; it never needs to know which front-end produced it.

final class ValidatorPlan

Since1.0.0
SourceValidator/Compiler/Ir/ValidatorPlan.php
PropertyTypeDescription
$nodesarrayreadonly.
$sourceRefstringreadonly.

public function __construct(array<ValidatorNode> $nodes, string $sourceRef): mixed

Origin reference (e.g. file path), for diagnostics and generated-file headers.

ParameterTypeDescription
$nodesarray``<ValidatorNode>Top-level validator nodes, in document order.
$sourceRefstringOrigin reference (e.g. file path), for diagnostics and generated-file headers.

Returns mixed