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.

Holding a negative prioritydoctest
$priority = new \SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\ThreadPriority(true, new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('5'));
    $priority->describe() // => '-5'

Properties§

public bool $negative
public Numeral $number

Methods§

public function __construct(public bool $negative, public Numeral $number)

Parameters

$negativeboolWhether a minus sign is written
$numberNumeralThe number as written
public function describe(): string

Answers the priority as a person reads it.

Returns

string
Test cases 1
public function render(Output $out): void

Writes the priority.

Parameters

$outOutput
Calls 2

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
Type declarations 3