ValidationAccumulator
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
void
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.
at line 71
void
merge(ValidationAccumulator $other)
Merge another compilation result into this result.
at line 94
void
addMarkerCandidate(ValidationPath $path, ValidationPath $rulePath)
Record a structural marker candidate.
at line 106
protected bool
rulesEqual(array $rules, array $otherRules)
Determine if two ordered rule maps compile to the same Validator input.
at line 124
protected bool
ruleValueEquals(mixed $rule, mixed $otherRule)
Determine if two rule values have the same Validator semantics.