classAlterUserStmtWithAlterUserCommandUserFuncIdentifiedByPasswordOptReplacePasswordOptRetainCurr_4986121c
final class AlterUserStmtWithAlterUserCommandUserFuncIdentifiedByPasswordOptReplacePasswordOptRetainCurr_4986121c
implements AlterUserStmtForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The alter_user_stmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\AlterUserStmtWithAlterUserCommandUserFuncIdentifiedByPasswordOptReplacePasswordOptRetainCurr_4986121c $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AlterUserCommandForm $alterUserCommandpublic UserFuncForm $userFuncpublic IdentifiedByPasswordForm $identifiedByPasswordpublic OptReplacePasswordForm $optReplacePasswordpublic OptRetainCurrentPasswordForm $optRetainCurrentPasswordpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AlterUserCommandForm $alterUserCommand,
public UserFuncForm $userFunc,
public IdentifiedByPasswordForm $identifiedByPassword,
public OptReplacePasswordForm $optReplacePassword,
public OptRetainCurrentPasswordForm $optRetainCurrentPassword,
public Comments $comments = new \SqlSemantics\Statement\Comments(),
)Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.
Parameters
$alterUserCommand | AlterUserCommandForm | |
$userFunc | UserFuncForm | |
$identifiedByPassword | IdentifiedByPasswordForm | |
$optReplacePassword | OptReplacePasswordForm | |
$optRetainCurrentPassword | OptRetainCurrentPasswordForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 6
- method-call Writer::comments() line 42
- method-call AlterUserCommandForm::write() line 43
- method-call UserFuncForm::write() line 45
- method-call IdentifiedByPasswordForm::write() line 47
- method-call OptReplacePasswordForm::write() line 49
- method-call OptRetainCurrentPasswordForm::write() line 51
public function withAlterUserCommand(AlterUserCommandForm $alterUserCommand): selfReturns a copy with a new alterUserCommand, preserving every other field.
Parameters
$alterUserCommand | AlterUserCommandForm |
Returns
selfCalls 1
- new
selfline 59
public function withUserFunc(UserFuncForm $userFunc): selfReturns a copy with a new userFunc, preserving every other field.
Parameters
$userFunc | UserFuncForm |
Returns
selfCalls 1
- new
selfline 67
public function withIdentifiedByPassword(IdentifiedByPasswordForm $identifiedByPassword): selfReturns a copy with a new identifiedByPassword, preserving every other field.
Parameters
$identifiedByPassword | IdentifiedByPasswordForm |
Returns
selfCalls 1
- new
selfline 75
public function withOptReplacePassword(OptReplacePasswordForm $optReplacePassword): selfReturns a copy with a new optReplacePassword, preserving every other field.
Parameters
$optReplacePassword | OptReplacePasswordForm |
Returns
selfCalls 1
- new
selfline 83
public function withOptRetainCurrentPassword(OptRetainCurrentPasswordForm $optRetainCurrentPassword): selfReturns a copy with a new optRetainCurrentPassword, preserving every other field.
Parameters
$optRetainCurrentPassword | OptRetainCurrentPasswordForm |
Returns
selfCalls 1
- new
selfline 91