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

One option of CREATE SERVER or ALTER SERVER: USER 'name', PORT 3306, ….

Source: https://dev.mysql.com/doc/refman/8.4/en/create-server.html.

Holding the port of a serverdoctest
$option = new \SqlSemantics\Platform\MySql\Statement\Server\ForeignServer\ServerOption(\SqlSemantics\Platform\MySql\Statement\Server\ForeignServer\ServerOptionKind::Port, new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('3307'));
    $option->value instanceof \SqlSemantics\Platform\MySql\Statement\Literal\Numeral // => true

Properties§

public Text|Numeral $value

Methods§

public function __construct(public ServerOptionKind $kind, public Text|Numeral $value)

Parameters

$kindServerOptionKindThe option
$valueText|NumeralA number for PORT, a string for the other options

Throws

InvalidConstruction When the value does not fit the option
Calls 2
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
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
Constant reads 2