classCreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageName_af0e55c9
final class CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageName_af0e55c9
implements CreatePLangStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreatePLangStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageName_af0e55c9 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptOrReplaceForm $optOrReplacepublic OptTrustedForm $optTrustedpublic OptProceduralForm $optProceduralpublic NameForm $namepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptOrReplaceForm $optOrReplace,
public OptTrustedForm $optTrusted,
public OptProceduralForm $optProcedural,
public NameForm $name,
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 | |
$optTrusted | OptTrustedForm | |
$optProcedural | OptProceduralForm | |
$name | NameForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 6
- method-call Writer::comments() line 40
- method-call Writer::append() line 41
- method-call OptOrReplaceForm::write() line 43
- method-call OptTrustedForm::write() line 45
- method-call OptProceduralForm::write() line 47
- method-call NameForm::write() line 51
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): selfReturns a copy with a new optOrReplace, preserving every other field.
Parameters
$optOrReplace | OptOrReplaceForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptTrusted(OptTrustedForm $optTrusted): selfReturns a copy with a new optTrusted, preserving every other field.
Parameters
$optTrusted | OptTrustedForm |
Returns
selfCalls 1
- new
selfline 67
public function withOptProcedural(OptProceduralForm $optProcedural): selfReturns a copy with a new optProcedural, preserving every other field.
Parameters
$optProcedural | OptProceduralForm |
Returns
selfCalls 1
- new
selfline 75
public function withName(NameForm $name): self