classCreateSubscriptionStmtWithCreateSubscriptionNameConnectionSconstPublicationNameListOptDefinition_e48c03e5
final class CreateSubscriptionStmtWithCreateSubscriptionNameConnectionSconstPublicationNameListOptDefinition_e48c03e5
implements CreateSubscriptionStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateSubscriptionStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateSubscriptionStmtWithCreateSubscriptionNameConnectionSconstPublicationNameListOptDefinition_e48c03e5 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public NameForm $namepublic SconstForm $sconstpublic NameListForm $nameListpublic OptDefinitionForm $optDefinitionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public NameForm $name,
public SconstForm $sconst,
public NameListForm $nameList,
public OptDefinitionForm $optDefinition,
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
$name | NameForm | |
$sconst | SconstForm | |
$nameList | NameListForm | |
$optDefinition | OptDefinitionForm | |
$comments | Comments |
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 NameForm::write() line 45
- method-call SconstForm::write() line 49
- method-call NameListForm::write() line 53
- method-call OptDefinitionForm::write() line 55
public function withName(NameForm $name): selfpublic function withSconst(SconstForm $sconst): selfReturns a copy with a new sconst, preserving every other field.
Parameters
$sconst | SconstForm |
Returns
selfCalls 1
- new
selfline 71
public function withNameList(NameListForm $nameList): selfReturns a copy with a new nameList, preserving every other field.
Parameters
$nameList | NameListForm |
Returns
selfCalls 1
- new
selfline 79
public function withOptDefinition(OptDefinitionForm $optDefinition): selfReturns a copy with a new optDefinition, preserving every other field.
Parameters
$optDefinition | OptDefinitionForm |
Returns
selfCalls 1
- new
selfline 87