classAlterRoleSetStmtWithAlterUserRoleSpecOptInDatabaseSetResetClause_ed69e4fc
final class AlterRoleSetStmtWithAlterUserRoleSpecOptInDatabaseSetResetClause_ed69e4fc
implements AlterRoleSetStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The AlterRoleSetStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\AlterRoleSetStmtWithAlterUserRoleSpecOptInDatabaseSetResetClause_ed69e4fc $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public RoleSpecForm $roleSpecpublic OptInDatabaseForm $optInDatabasepublic SetResetClauseForm $setResetClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public RoleSpecForm $roleSpec,
public OptInDatabaseForm $optInDatabase,
public SetResetClauseForm $setResetClause,
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 | |
$optInDatabase | OptInDatabaseForm | |
$setResetClause | SetResetClauseForm | |
$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 OptInDatabaseForm::write() line 45
- method-call SetResetClauseForm::write() line 47
public function withRoleSpec(RoleSpecForm $roleSpec): selfReturns a copy with a new roleSpec, preserving every other field.
Parameters
$roleSpec | RoleSpecForm |
Returns
selfCalls 1
- new
selfline 55
public function withOptInDatabase(OptInDatabaseForm $optInDatabase): selfReturns a copy with a new optInDatabase, preserving every other field.
Parameters
$optInDatabase | OptInDatabaseForm |
Returns
selfCalls 1
- new
selfline 63
public function withSetResetClause(SetResetClauseForm $setResetClause): selfReturns a copy with a new setResetClause, preserving every other field.
Parameters
$setResetClause | SetResetClauseForm |
Returns
selfCalls 1
- new
selfline 71