respect-validation/docs/rules/NoneOf.md
2018-12-11 13:31:50 +01:00

29 lines
451 B
Markdown

# NoneOf
- `NoneOf(Validatable ...$rule)`
Validates if NONE of the given validators validate:
```php
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:
- [AllOf](AllOf.md)
- [AnyOf](AnyOf.md)
- [Not](Not.md)
- [OneOf](OneOf.md)
- [When](When.md)