classAlterGroupStmtWithAlterGroupPRoleSpecAddDropUserRoleList_042015db
final class AlterGroupStmtWithAlterGroupPRoleSpecAddDropUserRoleList_042015db
implements AlterGroupStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The AlterGroupStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\AlterGroupStmtWithAlterGroupPRoleSpecAddDropUserRoleList_042015db $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public RoleSpecForm $roleSpecpublic AddDropForm $addDroppublic RoleListForm $roleListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public RoleSpecForm $roleSpec,
public AddDropForm $addDrop,
public RoleListForm $roleList,
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 | |
$addDrop | AddDropForm | |
$roleList | RoleListForm | |
$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 AddDropForm::write() line 45
- method-call RoleListForm::write() line 49
public function withRoleSpec(RoleSpecForm $roleSpec): selfReturns a copy with a new roleSpec, preserving every other field.
Parameters
$roleSpec | RoleSpecForm |
Returns
selfCalls 1
- new
selfline 57
public function withAddDrop(AddDropForm $addDrop): selfReturns a copy with a new addDrop, preserving every other field.
Parameters
$addDrop | AddDropForm |
Returns
selfCalls 1
- new
selfline 65
public function withRoleList(RoleListForm $roleList): selfReturns a copy with a new roleList, preserving every other field.
Parameters
$roleList | RoleListForm |
Returns
selfCalls 1
- new
selfline 73