respect-validation/docs/rules/ScalarVal.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

29 lines
402 B
Markdown

# ScalarVal
- `ScalarVal()`
Validates whether the input is a scalar value or not.
```php
v::scalarVal()->validate([]); // false
v::scalarVal()->validate(135.0); // true
```
## Categorization
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
***
See also:
- [ArrayVal](ArrayVal.md)
- [NumericVal](NumericVal.md)
- [StringType](StringType.md)
- [Type](Type.md)