final public static function hasNumber ($value, array $options=[]) : bool
	{
		if (!self::hasValue($value))  new ErrorCode(1001);

		// Submitted values are strings, so use is_numeric instead of is_int
		if (!is_numeric($value)) return FALSE;

		if (!empty($options)) return static::hasLength($value, $options);

		return TRUE;
	}
final public static function hasNumber ($value, array $options=[]) : bool
	{
		if (!self::hasValue($value))  new ErrorCode(1001);

		// Submitted values are strings, so use is_numeric instead of is_int
		if (!is_numeric($value)) return FALSE;

		if (!empty($options)) return static::hasLength($value, $options);

		return TRUE;
	}
final public static function hasNumber ( $ value , array $ options = [ ] ) : bool { if ( ! self :: hasValue ( $ value ) ) new ErrorCode ( 1001 ) ; // Submitted values are strings, so use is_numeric instead of is_int if ( ! is_numeric ( $ value ) ) return FALSE ; if ( ! empty ( $ options ) ) return static :: hasLength ( $ value , $ options ) ; return TRUE ; }
Validates if parameter is a number and if options aren't empty it checks the length.
@param mixed $value
@param array $options
@return bool
Validates if parameter is a number and if options aren t empty it checks the length .