2015-10-17 04:43:01 +02:00
|
|
|
# IntType
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `IntType()`
|
2015-10-17 04:43:01 +02:00
|
|
|
|
2018-03-26 22:29:49 +02:00
|
|
|
Validates whether the type of the input is [integer](http://php.net/types.integer).
|
2015-10-17 04:43:01 +02:00
|
|
|
|
|
|
|
```php
|
|
|
|
v::intType()->validate(42); // true
|
|
|
|
v::intType()->validate('10'); // false
|
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Numbers
|
|
|
|
- Types
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
1.0.0 | Created
|
|
|
|
|
2015-10-17 04:43:01 +02:00
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
2018-12-11 13:31:50 +01:00
|
|
|
- [ArrayType](ArrayType.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [BoolType](BoolType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [BoolVal](BoolVal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [CallableType](CallableType.md)
|
2020-10-05 12:49:14 +02:00
|
|
|
- [Decimal](Decimal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Digit](Digit.md)
|
|
|
|
- [Finite](Finite.md)
|
|
|
|
- [FloatType](FloatType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [FloatVal](FloatVal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Infinite](Infinite.md)
|
|
|
|
- [IntVal](IntVal.md)
|
|
|
|
- [NullType](NullType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Number](Number.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [NumericVal](NumericVal.md)
|
|
|
|
- [ObjectType](ObjectType.md)
|
|
|
|
- [ResourceType](ResourceType.md)
|
|
|
|
- [StringType](StringType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [StringVal](StringVal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Type](Type.md)
|