respect-validation/docs/rules/IntType.md
Henrique Moody 1eb5b9d3c5
Add "Decimal" link to related rules
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-10-05 12:49:42 +02:00

45 lines
827 B
Markdown

# IntType
- `IntType()`
Validates whether the type of the input is [integer](http://php.net/types.integer).
```php
v::intType()->validate(42); // true
v::intType()->validate('10'); // false
```
## Categorization
- Numbers
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
***
See also:
- [ArrayType](ArrayType.md)
- [BoolType](BoolType.md)
- [BoolVal](BoolVal.md)
- [CallableType](CallableType.md)
- [Decimal](Decimal.md)
- [Digit](Digit.md)
- [Finite](Finite.md)
- [FloatType](FloatType.md)
- [FloatVal](FloatVal.md)
- [Infinite](Infinite.md)
- [IntVal](IntVal.md)
- [NullType](NullType.md)
- [Number](Number.md)
- [NumericVal](NumericVal.md)
- [ObjectType](ObjectType.md)
- [ResourceType](ResourceType.md)
- [StringType](StringType.md)
- [StringVal](StringVal.md)
- [Type](Type.md)