classWeightLevel
final class WeightLevel
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One collation level of the LEVEL clause of WEIGHT_STRING in MySQL 5.6 and 5.7, with its order and reversal flags.
Source: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_weight-string.
$level = new \SqlSemantics\Platform\MySql\Statement\Call\Weight\WeightLevel(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('2'), \SqlSemantics\Platform\MySql\Statement\Query\Direction::Descending, true);
[$level->number->text, $level->direction, $level->reverse] // => ['2', \SqlSemantics\Platform\MySql\Statement\Query\Direction::Descending, true]Properties§
public Numeral $numberpublic Direction|null $direction = nullpublic bool $reverse = falseMethods§
public function render(Output $out): voidWrites the level and its flags.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::node() line 41
- method-call Output::keyword() line 43
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.