A simple validator for values to be stored in the database

package ArangoDBClient
since 0.2

 Methods

Validate the value of a variable

validate(mixed $value) : void
Static

Allowed value types are string, integer, double and boolean. Arrays are also allowed if they contain only one of the former types.

Parameters

$value

mixed
  • value to validate

Exceptions

\ArangoDBClient\ClientException