classCreateRoleStmtWithCreateRoleRoleIdOptWithOptRoleList_a90ce170
final class CreateRoleStmtWithCreateRoleRoleIdOptWithOptRoleList_a90ce170
implements CreateRoleStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateRoleStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateRoleStmtWithCreateRoleRoleIdOptWithOptRoleList_a90ce170 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public RoleIdForm $roleIdpublic OptWithForm $optWithpublic OptRoleListForm $optRoleListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public RoleIdForm $roleId,
public OptWithForm $optWith,
public OptRoleListForm $optRoleList,
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
$roleId | RoleIdForm | |
$optWith | OptWithForm | |
$optRoleList | OptRoleListForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call CreateRoleStmtWithCreateRoleRoleIdOptWithOptRoleList_a90ce170::assert() line 28
- static-call Contracts::contains() line 28
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 RoleIdForm::write() line 43
- method-call OptWithForm::write() line 45
- method-call OptRoleListForm::write() line 47
public function withRoleId(RoleIdForm $roleId): selfReturns a copy with a new roleId, preserving every other field.
Parameters
$roleId | RoleIdForm |
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 withOptRoleList(OptRoleListForm $optRoleList): selfReturns a copy with a new optRoleList, preserving every other field.
Parameters
$optRoleList | OptRoleListForm |
Returns
selfCalls 1
- new
selfline 71