classExpireUserPasswords
final class ExpireUserPasswords
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.MySQL 5.6 ALTER USER account PASSWORD EXPIRE, …: a request to mark the passwords of accounts expired.
Rule: MYSQL-ALTER-USER-EXPIRE-001. MySQL 5.6 has no other form of ALTER USER; every account is followed by PASSWORD EXPIRE. Source: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics('mysql-5.6.51'))->analyze('alter user a password expire, b password expire')->toString() // => 'ALTER USER a PASSWORD EXPIRE, b PASSWORD EXPIRE'Properties§
public list<Account> $usersMethods§
public function __construct(list<Account> $users)Parameters
$users | list<Account> | The accounts in order; at least one |
Calls 2
- static-call Check::listOf() line 39
- class-const Account::class() line 39
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement names no relation and no expression.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 54
- method-call Output::symbol() line 57
- method-call Output::node() line 59
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ExpireUserPasswordsTestcalls