respect-validation/docs/NoneOf.md
2015-08-20 01:38:41 -03:00

339 B

NoneOf

  • v::noneOf(v $v1, v $v2, v $v3...)

Validates if NONE of the given validators validate:

v::noneOf(
    v::int(),
    v::float()
)->validate('foo'); //true

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


See also: