classInvalidFactorPair
final class InvalidFactorPair
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.Two factor changes of one ALTER USER account that name the same factor, or that add the third factor before the second.
The server rejects the statement while parsing it with ER_MFA_METHODS_IDENTICAL or ER_MFA_METHODS_INVALID_ORDER. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-user.html#alter-user-multifactor.
(new \SqlSemantics\Platform\MySql\Statement\Account\Problem\InvalidFactorPair(true))->message() // => 'Both factor changes name the same factor (ER_MFA_METHODS_IDENTICAL).'Properties§
public bool $identicalMethods§
public function __construct(public bool $identical)Parameters
$identical | bool | Whether both changes name the same factor; otherwise the order is wrong |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.