class ValidationAccumulator

Properties

array<string, list<array|object|string>> $rules
array<string, true> $inferredRequiredPaths
array<string, array<string, string>|string> $messages
array<string, string> $attributes
ValidationPath> $preservedPaths
list<string> $additionalFields
list<string> $allowedSubtrees
array<string, true> $finishedStructuralPaths
array<string, array<string, true>> $markerCandidates

Methods

bool
equals(ValidationAccumulator $other)

Determine if another accumulator has the same compiled output.

void
merge(ValidationAccumulator $other)

Merge another compilation result into this result.

void
addMarkerCandidate(ValidationPath $path, ValidationPath $rulePath)

Record a structural marker candidate.

bool
rulesEqual(array $rules, array $otherRules)

Determine if two ordered rule maps compile to the same Validator input.

bool
ruleValueEquals(mixed $rule, mixed $otherRule)

Determine if two rule values have the same Validator semantics.

Details

at line 43
bool equals(ValidationAccumulator $other)

Determine if another accumulator has the same compiled output.

Parameters

ValidationAccumulator $other

Return Value

bool

at line 71
void merge(ValidationAccumulator $other)

Merge another compilation result into this result.

Parameters

ValidationAccumulator $other

Return Value

void

at line 94
void addMarkerCandidate(ValidationPath $path, ValidationPath $rulePath)

Record a structural marker candidate.

Parameters

ValidationPath $path
ValidationPath $rulePath

Return Value

void

at line 106
protected bool rulesEqual(array $rules, array $otherRules)

Determine if two ordered rule maps compile to the same Validator input.

Parameters

array $rules
array $otherRules

Return Value

bool

at line 124
protected bool ruleValueEquals(mixed $rule, mixed $otherRule)

Determine if two rule values have the same Validator semantics.

Parameters

mixed $rule
mixed $otherRule

Return Value

bool