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

One CPU number or range n-m of the VCPU option of a resource group.

Mirrors resourcegroups::Range. Which CPUs exist is a property of the machine the server runs on, which a declaration context does not hold. Source: https://dev.mysql.com/doc/refman/8.4/en/create-resource-group.html.

Holding a rangedoctest
$range = new \SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\CpuRange(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('0'), new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('3'));
    [$range->first->text, $range->last?->text] // => ['0', '3']

Properties§

public Numeral $first
public Numeral|null $last = null

Methods§

public function __construct(public Numeral $first, public Numeral|null $last = null)

Parameters

$firstNumeralThe CPU number, or the first of the range
$lastNumeral|nullThe last CPU of the range, when one is written
public function render(Output $out): void

Writes the number or the range.

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
Constant reads 2
Type declarations 1