respect-validation/docs/NullType.md

33 lines
627 B
Markdown
Raw Normal View History

2015-10-07 17:28:06 +02:00
# NullType
- `NullType()`
2015-10-07 17:28:06 +02:00
Validates if the input is null.
```php
v::nullType()->validate(null); // true
2015-10-07 17:28:06 +02:00
```
## Changelog
Version | Description
--------|-------------
1.0.0 | Renamed from `NullValue` to `NullType`
0.3.9 | Created as `NullValue`
2015-10-07 17:28:06 +02:00
***
See also:
* [BoolType](BoolType.md)
* [CallableType](CallableType.md)
* [FloatType](FloatType.md)
* [IntType](IntType.md)
* [NotBlank](NotBlank.md)
2015-10-07 17:28:06 +02:00
* [NotEmpty](NotEmpty.md)
* [NotOptional](NotOptional.md)
* [NullType](NullType.md)
* [ObjectType](ObjectType.md)
* [ResourceType](ResourceType.md)
* [StringType](StringType.md)
* [Type](Type.md)