classGrantStmtWithGrantPrivilegesOnPrivilegeTargetToGranteeListOptGrantGrantOptionOptGrantedB_21e68a6a
final class GrantStmtWithGrantPrivilegesOnPrivilegeTargetToGranteeListOptGrantGrantOptionOptGrantedB_21e68a6a
implements GrantStmtForm, ParseToplevelForm, RoutineBodyStmtForm, SchemaStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The GrantStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\GrantStmtWithGrantPrivilegesOnPrivilegeTargetToGranteeListOptGrantGrantOptionOptGrantedB_21e68a6a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public PrivilegesForm $privilegespublic PrivilegeTargetForm $privilegeTargetpublic GranteeListForm $granteeListpublic OptGrantGrantOptionForm $optGrantGrantOptionpublic OptGrantedByForm $optGrantedBypublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public PrivilegesForm $privileges,
public PrivilegeTargetForm $privilegeTarget,
public GranteeListForm $granteeList,
public OptGrantGrantOptionForm $optGrantGrantOption,
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
$privileges | PrivilegesForm | |
$privilegeTarget | PrivilegeTargetForm | |
$granteeList | GranteeListForm | |
$optGrantGrantOption | OptGrantGrantOptionForm | |
$optGrantedBy | OptGrantedByForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call PrivilegesForm::write() line 45
- method-call PrivilegeTargetForm::write() line 49
- method-call GranteeListForm::write() line 53
- method-call OptGrantGrantOptionForm::write() line 55
- method-call OptGrantedByForm::write() line 57
public function withPrivileges(PrivilegesForm $privileges): selfReturns a copy with a new privileges, preserving every other field.
Parameters
$privileges | PrivilegesForm |
Returns
selfCalls 1
- new
selfline 65
public function withPrivilegeTarget(PrivilegeTargetForm $privilegeTarget): selfReturns a copy with a new privilegeTarget, preserving every other field.
Parameters
$privilegeTarget | PrivilegeTargetForm |
Returns
selfCalls 1
- new
selfline 73
public function withGranteeList(GranteeListForm $granteeList): selfReturns a copy with a new granteeList, preserving every other field.
Parameters
$granteeList | GranteeListForm |
Returns
selfCalls 1
- new
selfline 81
public function withOptGrantGrantOption(OptGrantGrantOptionForm $optGrantGrantOption): selfReturns a copy with a new optGrantGrantOption, preserving every other field.
Parameters
$optGrantGrantOption | OptGrantGrantOptionForm |
Returns
selfCalls 1
- new
selfline 89
public function withOptGrantedBy(OptGrantedByForm $optGrantedBy): selfReturns a copy with a new optGrantedBy, preserving every other field.
Parameters
$optGrantedBy | OptGrantedByForm |
Returns
selfCalls 1
- new
selfline 97