classThreadPriority
final class ThreadPriority
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The THREAD_PRIORITY of a resource group: a number with an optional minus sign.
Source: https://dev.mysql.com/doc/refman/8.4/en/create-resource-group.html.
$priority = new \SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\ThreadPriority(true, new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('5'));
$priority->describe() // => '-5'Properties§
public bool $negativepublic Numeral $numberMethods§
public function __construct(public bool $negative, public Numeral $number)Parameters
$negative | bool | Whether a minus sign is written |
$number | Numeral | The number as written |
public function describe(): stringAnswers the priority as a person reads it.
Returns
stringTest cases 1
public function render(Output $out): voidWrites the priority.
Parameters
$out | Output |
Calls 2
- method-call Output::symbol() line 48
- method-call Output::node() line 50
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 2
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::priority() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:157
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::priority() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:158
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:144
- type SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\AlterResourceGroup packages/sql-semantics-mysql/src/Statement/Account/ResourceGroup/AlterResourceGroup.php:43
- type SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\CreateResourceGroup packages/sql-semantics-mysql/src/Statement/Account/ResourceGroup/CreateResourceGroup.php:45