Class ValueValidator
A simple validator for values to be stored in the database
Methods summary
public static
|
#
validate( mixed $value )
Validate the value of a variable
Validate the value of a variable
Allowed value types are string, integer, double and boolean. Arrays are also allowed if they contain only one of the former types.
Parameters
Returns
- will throw if an invalid value type is passed
Throws
|