respect-validation/docs/rules/AllOf.md
Henrique Moody 2610a380dc
Replace "LazyConsecutive" with "Consecutive"
With this and the Lazy rule, the LazyConsecutive lost its purpose.

While working on it, I did refactor the Domain rule a bit, but mainly to
check how this rule could behave.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2024-03-06 23:57:49 +01:00

501 B

AllOf

  • AllOf(Validatable $rule1, Validatable $rule2, Validatable ...$rule)

Will validate if all inner validators validates.

v::allOf(v::intVal(), v::positive())->validate(15); // true

Categorization

  • Composite
  • Nesting

Changelog

Version Description
3.0.0 Require at least two rules to be passed
0.3.9 Created

See also: