classCreateFunctionStmtWithCreateOptOrReplaceFunctionFuncNameFuncArgsWithDefaultsOptCreatefuncOptListO_e3a1a6d7
final class CreateFunctionStmtWithCreateOptOrReplaceFunctionFuncNameFuncArgsWithDefaultsOptCreatefuncOptListO_e3a1a6d7
implements CreateFunctionStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateFunctionStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateFunctionStmtWithCreateOptOrReplaceFunctionFuncNameFuncArgsWithDefaultsOptCreatefuncOptListO_e3a1a6d7 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptOrReplaceForm $optOrReplacepublic FuncNameForm $funcNamepublic FuncArgsWithDefaultsForm $funcArgsWithDefaultspublic OptCreatefuncOptListForm $optCreatefuncOptListpublic OptRoutineBodyForm $optRoutineBodypublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptOrReplaceForm $optOrReplace,
public FuncNameForm $funcName,
public FuncArgsWithDefaultsForm $funcArgsWithDefaults,
public OptCreatefuncOptListForm $optCreatefuncOptList,
public OptRoutineBodyForm $optRoutineBody,
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 | |
$funcArgsWithDefaults | FuncArgsWithDefaultsForm | |
$optCreatefuncOptList | OptCreatefuncOptListForm | |
$optRoutineBody | OptRoutineBodyForm | |
$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 OptOrReplaceForm::write() line 45
- method-call FuncNameForm::write() line 49
- method-call FuncArgsWithDefaultsForm::write() line 51
- method-call OptCreatefuncOptListForm::write() line 53
- method-call OptRoutineBodyForm::write() line 55
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): selfReturns a copy with a new optOrReplace, preserving every other field.
Parameters
$optOrReplace | OptOrReplaceForm |
Returns
selfCalls 1
- new
selfline 63
public function withFuncName(FuncNameForm $funcName): selfReturns a copy with a new funcName, preserving every other field.
Parameters
$funcName | FuncNameForm |
Returns
selfCalls 1
- new
selfline 71
public function withFuncArgsWithDefaults(FuncArgsWithDefaultsForm $funcArgsWithDefaults): selfReturns a copy with a new funcArgsWithDefaults, preserving every other field.
Parameters
$funcArgsWithDefaults | FuncArgsWithDefaultsForm |
Returns
selfCalls 1
- new
selfline 79
public function withOptCreatefuncOptList(OptCreatefuncOptListForm $optCreatefuncOptList): selfReturns a copy with a new optCreatefuncOptList, preserving every other field.
Parameters
$optCreatefuncOptList | OptCreatefuncOptListForm |
Returns
selfCalls 1
- new
selfline 87
public function withOptRoutineBody(OptRoutineBodyForm $optRoutineBody): selfReturns a copy with a new optRoutineBody, preserving every other field.
Parameters
$optRoutineBody | OptRoutineBodyForm |
Returns
selfCalls 1
- new
selfline 95