classRevokeStmtWithRevokePrivilegesOnPrivilegeTargetFromGranteeListOptGrantedByOptDropBehavior_021b0ef2
final class RevokeStmtWithRevokePrivilegesOnPrivilegeTargetFromGranteeListOptGrantedByOptDropBehavior_021b0ef2
implements RevokeStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The RevokeStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\RevokeStmtWithRevokePrivilegesOnPrivilegeTargetFromGranteeListOptGrantedByOptDropBehavior_021b0ef2 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public PrivilegesForm $privilegespublic PrivilegeTargetForm $privilegeTargetpublic GranteeListForm $granteeListpublic OptGrantedByForm $optGrantedBypublic OptDropBehaviorForm $optDropBehaviorpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public PrivilegesForm $privileges,
public PrivilegeTargetForm $privilegeTarget,
public GranteeListForm $granteeList,
public OptGrantedByForm $optGrantedBy,
public OptDropBehaviorForm $optDropBehavior,
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 | |
$optGrantedBy | OptGrantedByForm | |
$optDropBehavior | OptDropBehaviorForm | |
$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 OptGrantedByForm::write() line 55
- method-call OptDropBehaviorForm::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 withOptGrantedBy(OptGrantedByForm $optGrantedBy): selfReturns a copy with a new optGrantedBy, preserving every other field.
Parameters
$optGrantedBy | OptGrantedByForm |
Returns
selfCalls 1
- new
selfline 89
public function withOptDropBehavior(OptDropBehaviorForm $optDropBehavior): selfReturns a copy with a new optDropBehavior, preserving every other field.
Parameters
$optDropBehavior | OptDropBehaviorForm |
Returns
selfCalls 1
- new
selfline 97