classAlterRoleStmtWithAlterUserRoleSpecOptWithAlterOptRoleList_793c5033
final class AlterRoleStmtWithAlterUserRoleSpecOptWithAlterOptRoleList_793c5033
implements AlterRoleStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The AlterRoleStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\AlterRoleStmtWithAlterUserRoleSpecOptWithAlterOptRoleList_793c5033 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public RoleSpecForm $roleSpecpublic OptWithForm $optWithpublic AlterOptRoleListForm $alterOptRoleListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public RoleSpecForm $roleSpec,
public OptWithForm $optWith,
public AlterOptRoleListForm $alterOptRoleList,
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
$roleSpec | RoleSpecForm | |
$optWith | OptWithForm | |
$alterOptRoleList | AlterOptRoleListForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call RoleSpecForm::write() line 43
- method-call OptWithForm::write() line 45
- method-call AlterOptRoleListForm::write() line 47
public function withRoleSpec(RoleSpecForm $roleSpec): selfReturns a copy with a new roleSpec, preserving every other field.
Parameters
$roleSpec | RoleSpecForm |
Returns
selfCalls 1
- new
selfline 55
public function withOptWith(OptWithForm $optWith): selfReturns a copy with a new optWith, preserving every other field.
Parameters
$optWith | OptWithForm |
Returns
selfCalls 1
- new
selfline 63
public function withAlterOptRoleList(AlterOptRoleListForm $alterOptRoleList): selfReturns a copy with a new alterOptRoleList, preserving every other field.
Parameters
$alterOptRoleList | AlterOptRoleListForm |
Returns
selfCalls 1
- new
selfline 71