public static function isValidValue($value) { $values = array_values(self::getConstants()); return in_array($value, $values, $strict = true); }