2015-01-30 09:40:06 +01:00
|
|
|
# Equals
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
- `Equals(mixed $compareTo)`
|
2015-01-30 09:40:06 +01:00
|
|
|
|
2015-10-13 18:27:10 +02:00
|
|
|
Validates if the input is equal to some value.
|
2015-01-30 09:40:06 +01:00
|
|
|
|
|
|
|
```php
|
2015-10-20 02:53:25 +02:00
|
|
|
v::equals('alganet')->validate('alganet'); // true
|
2015-01-30 09:40:06 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Message template for this validator includes `{{compareTo}}`.
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Comparisons
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
1.0.0 | Removed identical checking (see [Identical](Identical.md))
|
|
|
|
0.3.9 | Created
|
|
|
|
|
2015-08-20 06:38:41 +02:00
|
|
|
***
|
2015-01-30 09:40:06 +01:00
|
|
|
See also:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Contains](Contains.md)
|
2018-06-23 16:24:48 +02:00
|
|
|
- [Equivalent](Equivalent.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Identical](Identical.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [KeyValue](KeyValue.md)
|
|
|
|
- [Version](Version.md)
|