respect-validation/docs/rules/NoneOf.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

493 B

NoneOf

  • NoneOf(Validatable ...$rule)

Validates if NONE of the given validators validate:

v::noneOf(
    v::intVal(),
    v::floatVal()
)->validate('foo'); // true

In the sample above, 'foo' isn't a integer nor a float, so noneOf returns true.

Categorization

  • Composite
  • Nesting

Changelog

Version Description
0.3.9 Created

See also: