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

One factor an ALTER USER factor change names: n FACTOR, with the method ADD and MODIFY give it.

The number is kept as written; the server accepts only 2 and 3. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-user.html#alter-user-multifactor.

Holding the second factordoctest
(new \SqlSemantics\Platform\MySql\Statement\Account\User\FactorStep(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('2')))->factor->text // => '2'

Properties§

public Numeral $factor
public Identification|null $identification = null

Methods§

public function __construct(
    public Numeral $factor,
    public Identification|null $identification = null,
)

Parameters

$factorNumeralThe factor number as written
$identificationIdentification|nullThe authentication method of the factor, for ADD and MODIFY
public function render(Output $out): void

Writes the factor and its method.

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