public static function types(array $types)
{
$defined = array('boolean', 'integer', 'string', 'double');
$diff = array_diff($types, $defined);
if (empty($diff)) {
return TRUE;
}
throw new LazerException('Wrong types: "' . implode(', ', $diff) . '". Available "boolean, integer, string, double"');
}