enum ArithmeticOperator: string
Public API: explicitly declared with @visibility public.

The binary arithmetic and bit operators of the bit_expr level.

% and MOD are one operator and are written %. Each case holds the written operator. Source: https://dev.mysql.com/doc/refman/8.4/en/arithmetic-functions.html, https://dev.mysql.com/doc/refman/8.4/en/bit-functions.html.

Reading the operator of an integer divisiondoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t WHERE a DIV 2');
    $query->statement->where->operator // => \SqlSemantics\Platform\MySql\Statement\Expression\Operator\ArithmeticOperator::IntegerDivide

Cases§

case BitOr = '|'
case BitAnd = '&'
case ShiftLeft = '<<'
case ShiftRight = '>>'
case Plus = '+'
case Minus = '-'
case Multiply = '*'
case Divide = '/'
case Modulo = '%'
case IntegerDivide = 'DIV'
case BitXor = '^'

Methods§

Test cases 30§

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

Dedicated tests 2
Other tests reaching this symbol 28

Relations§

Method calls 3
Constant reads 25
Type declarations 3