classGrantRoleStmtWithGrantPrivilegeListToRoleListOptGrantedBy_9a297464
final class GrantRoleStmtWithGrantPrivilegeListToRoleListOptGrantedBy_9a297464
implements GrantRoleStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The GrantRoleStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\GrantRoleStmtWithGrantPrivilegeListToRoleListOptGrantedBy_9a297464 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public PrivilegeListForm $privilegeListpublic RoleListForm $roleListpublic OptGrantedByForm $optGrantedBypublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public PrivilegeListForm $privilegeList,
public RoleListForm $roleList,
public OptGrantedByForm $optGrantedBy,
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
$privilegeList | PrivilegeListForm | |
$roleList | RoleListForm | |
$optGrantedBy | OptGrantedByForm | |
$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 PrivilegeListForm::write() line 41
- method-call RoleListForm::write() line 45
- method-call OptGrantedByForm::write() line 47
public function withPrivilegeList(PrivilegeListForm $privilegeList): selfReturns a copy with a new privilegeList, preserving every other field.
Parameters
$privilegeList | PrivilegeListForm |
Returns
selfCalls 1
- new
selfline 55
public function withRoleList(RoleListForm $roleList): selfReturns a copy with a new roleList, preserving every other field.
Parameters
$roleList | RoleListForm |
Returns
selfCalls 1
- new
selfline 63
public function withOptGrantedBy(OptGrantedByForm $optGrantedBy): selfReturns a copy with a new optGrantedBy, preserving every other field.
Parameters
$optGrantedBy | OptGrantedByForm |
Returns
selfCalls 1
- new
selfline 71