classDefineStmtWithCreateOptOrReplaceAggregateFuncNameOldAggrDefinition_c1c37220
final class DefineStmtWithCreateOptOrReplaceAggregateFuncNameOldAggrDefinition_c1c37220
implements DefineStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The DefineStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\DefineStmtWithCreateOptOrReplaceAggregateFuncNameOldAggrDefinition_c1c37220 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptOrReplaceForm $optOrReplacepublic FuncNameForm $funcNamepublic OldAggrDefinitionForm $oldAggrDefinitionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptOrReplaceForm $optOrReplace,
public FuncNameForm $funcName,
public OldAggrDefinitionForm $oldAggrDefinition,
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
$optOrReplace | OptOrReplaceForm | |
$funcName | FuncNameForm | |
$oldAggrDefinition | OldAggrDefinitionForm | |
$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 OptOrReplaceForm::write() line 41
- method-call FuncNameForm::write() line 45
- method-call OldAggrDefinitionForm::write() line 47
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): selfReturns a copy with a new optOrReplace, preserving every other field.
Parameters
$optOrReplace | OptOrReplaceForm |
Returns
selfCalls 1
- new
selfline 55
public function withFuncName(FuncNameForm $funcName): selfReturns a copy with a new funcName, preserving every other field.
Parameters
$funcName | FuncNameForm |
Returns
selfCalls 1
- new
selfline 63
public function withOldAggrDefinition(OldAggrDefinitionForm $oldAggrDefinition): selfReturns a copy with a new oldAggrDefinition, preserving every other field.
Parameters
$oldAggrDefinition | OldAggrDefinitionForm |
Returns
selfCalls 1
- new
selfline 71