mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 16:52:16 +02:00
1eb5b9d3c5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
45 lines
827 B
Markdown
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)
|