mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 23:02:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
33 lines
553 B
Markdown
33 lines
553 B
Markdown
# GreaterThan
|
|
|
|
- `GreaterThan(mixed $compareTo)`
|
|
|
|
Validates whether the input is greater than a value.
|
|
|
|
```php
|
|
v::greaterThan(10)->validate(11); // true
|
|
v::greaterThan(10)->validate(9); // false
|
|
```
|
|
|
|
Validation makes comparison easier, check out our supported
|
|
[comparable values](../comparable-values.md).
|
|
|
|
Message template for this validator includes `{{compareTo}}`.
|
|
|
|
## Categorization
|
|
|
|
- Comparisons
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.0.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Between](Between.md)
|
|
- [Max](Max.md)
|
|
- [Min](Min.md)
|