final class WeightLevelRange
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A range of collation levels from - to in the LEVEL clause of WEIGHT_STRING in MySQL 5.6 and 5.7.

Source: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_weight-string.

Holding a range of levelsdoctest
$range = new \SqlSemantics\Platform\MySql\Statement\Call\Weight\WeightLevelRange(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('1'), new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('3'));
    [$range->from->text, $range->to->text] // => ['1', '3']

Properties§

public Numeral $from
public Numeral $to

Methods§

public function __construct(public Numeral $from, public Numeral $to)

Parameters

$fromNumeralThe first level
$toNumeralThe last level
public function render(Output $out): void

Writes the range.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 1