enum NumberForm
Public API: explicitly declared with @visibility public.

The three kinds of number literal the MySQL lexer tells apart.

Digits alone are an integer while they fit an unsigned 64-bit integer and a decimal beyond that; digits with a decimal point are a decimal; a number with an exponent is a floating-point number. Source: https://dev.mysql.com/doc/refman/8.4/en/number-literals.html.

Classifying the text of a numberdoctest
[\SqlSemantics\Platform\MySql\Statement\Literal\NumberForm::of('18446744073709551616'), \SqlSemantics\Platform\MySql\Statement\Literal\NumberForm::of('1e3')] // => [\SqlSemantics\Platform\MySql\Statement\Literal\NumberForm::Decimal, \SqlSemantics\Platform\MySql\Statement\Literal\NumberForm::Float]

Cases§

case Integer
case Decimal
case Float

Methods§

public static function of(string $text): ?self

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 2

Relations§

Static calls 1
Constant reads 11
Type declarations 1