Usage
Available validators
Simple type validators
VirCom\TypesValidator\ArrayValidator
- checks is argument is an array typeVirCom\TypesValidator\BooleanValidator
- checks is argument is a boolean typeVirCom\TypesValidator\CallableValidator
- checks is argument is a callable typeVirCom\TypesValidator\FloatValidator
- checks is argument is a float typeVirCom\TypesValidator\IntegerValidator
- checks is argument is an integer typeVirCom\TypesValidator\IterableValidator
- checks is argument is an iterable typeVirCom\TypesValidator\MixedValidator
- nothing to checks :)VirCom\TypesValidator\NullValidator
- checks is argument is a null typeVirCom\TypesValidator\NumberValidator
- checks is argument is an integer or a float typeVirCom\TypesValidator\ObjectValidator
- checks is argument is an object typeVirCom\TypesValidator\ResourceValidator
- checks is argument is a resource typeVirCom\TypesValidator\StringValidator
- checks is argument is a string typeVirCom\TypesValidator\ScalarValidator
- checks is argument is a scalar type (boolean, integer, float, string)
Example:
Class type validator
Checks that argument is:
instance of class
instance of class that extends subclass
instance of class that implements interface
Example:
Last updated