respect-validation/docs/NoneOf.md
2017-03-28 11:53:14 +02:00

433 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.

Changelog

Version Description
0.3.9 Created

See also: