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

One option = 'value' of START GROUP_REPLICATION.

Source: https://dev.mysql.com/doc/refman/8.4/en/start-group-replication.html.

Holding a user optiondoctest
(new \SqlSemantics\Platform\MySql\Statement\Replication\Group\CredentialOption(\SqlSemantics\Platform\MySql\Statement\Replication\Group\Credential::User, new \SqlSemantics\Platform\MySql\Statement\Literal\Text('rpl')))->value->value // => 'rpl'

Properties§

public Credential $credential
public Text $value

Methods§

public function __construct(public Credential $credential, public Text $value)

Parameters

$credentialCredentialThe option
$valueTextThe value
public function render(Output $out): void

Writes the option, = and the value.

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