classCreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageNameHandlerHandlerNameOptI_8ae70d23
final class CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageNameHandlerHandlerNameOptI_8ae70d23
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\CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageNameHandlerHandlerNameOptI_8ae70d23 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptOrReplaceForm $optOrReplacepublic OptTrustedForm $optTrustedpublic OptProceduralForm $optProceduralpublic NameForm $namepublic HandlerNameForm $handlerNamepublic OptInlineHandlerForm $optInlineHandlerpublic OptValidatorForm $optValidatorpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptOrReplaceForm $optOrReplace,
public OptTrustedForm $optTrusted,
public OptProceduralForm $optProcedural,
public NameForm $name,
public HandlerNameForm $handlerName,
public OptInlineHandlerForm $optInlineHandler,
public OptValidatorForm $optValidator,
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 | |
$handlerName | HandlerNameForm | |
$optInlineHandler | OptInlineHandlerForm | |
$optValidator | OptValidatorForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 9
- method-call Writer::comments() line 46
- method-call Writer::append() line 47
- method-call OptOrReplaceForm::write() line 49
- method-call OptTrustedForm::write() line 51
- method-call OptProceduralForm::write() line 53
- method-call NameForm::write() line 57
- method-call HandlerNameForm::write() line 61
- method-call OptInlineHandlerForm::write() line 63
- method-call OptValidatorForm::write() line 65
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): selfReturns a copy with a new optOrReplace, preserving every other field.
Parameters
$optOrReplace | OptOrReplaceForm |
Returns
selfCalls 1
- new
selfline 73
public function withOptTrusted(OptTrustedForm $optTrusted): selfReturns a copy with a new optTrusted, preserving every other field.
Parameters
$optTrusted | OptTrustedForm |
Returns
selfCalls 1
- new
selfline 81
public function withOptProcedural(OptProceduralForm $optProcedural): selfReturns a copy with a new optProcedural, preserving every other field.
Parameters
$optProcedural | OptProceduralForm |
Returns
selfCalls 1
- new
selfline 89
public function withName(NameForm $name): selfpublic function withHandlerName(HandlerNameForm $handlerName): selfReturns a copy with a new handlerName, preserving every other field.
Parameters
$handlerName | HandlerNameForm |
Returns
selfCalls 1
- new
selfline 105
public function withOptInlineHandler(OptInlineHandlerForm $optInlineHandler): selfReturns a copy with a new optInlineHandler, preserving every other field.
Parameters
$optInlineHandler | OptInlineHandlerForm |
Returns
selfCalls 1
- new
selfline 113
public function withOptValidator(OptValidatorForm $optValidator): selfReturns a copy with a new optValidator, preserving every other field.
Parameters
$optValidator | OptValidatorForm |
Returns
selfCalls 1
- new
selfline 121