respect-validation/docs/ResourceType.md

28 lines
466 B
Markdown
Raw Normal View History

# ResourceType
2015-08-20 05:55:32 +02:00
- `ResourceType()`
2015-08-20 05:55:32 +02:00
Validates if the input is a resource.
```php
v::resourceType()->validate(fopen('/path/to/file.txt', 'w')); // true
2015-08-20 05:55:32 +02:00
```
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
***
2015-08-20 05:55:32 +02:00
See also:
- [BoolType](BoolType.md)
- [CallableType](CallableType.md)
- [FloatType](FloatType.md)
- [IntType](IntType.md)
- [NullType](NullType.md)
- [ObjectType](ObjectType.md)
- [StringType](StringType.md)
- [Type](Type.md)