classCreateForeignTableStmtWithCreateForeignTableQualifiedNameOptTableElementListOptInheritServerNameCreat_afeeaf19
final class CreateForeignTableStmtWithCreateForeignTableQualifiedNameOptTableElementListOptInheritServerNameCreat_afeeaf19
implements CreateForeignTableStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateForeignTableStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateForeignTableStmtWithCreateForeignTableQualifiedNameOptTableElementListOptInheritServerNameCreat_afeeaf19 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public QualifiedNameForm $qualifiedNamepublic OptTableElementListForm $optTableElementListpublic OptInheritForm $optInheritpublic NameForm $namepublic CreateGenericOptionsForm $createGenericOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public QualifiedNameForm $qualifiedName,
public OptTableElementListForm $optTableElementList,
public OptInheritForm $optInherit,
public NameForm $name,
public CreateGenericOptionsForm $createGenericOptions,
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
$qualifiedName | QualifiedNameForm | |
$optTableElementList | OptTableElementListForm | |
$optInherit | OptInheritForm | |
$name | NameForm | |
$createGenericOptions | CreateGenericOptionsForm | |
$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 QualifiedNameForm::write() line 49
- method-call OptTableElementListForm::write() line 53
- method-call OptInheritForm::write() line 57
- method-call NameForm::write() line 61
- method-call CreateGenericOptionsForm::write() line 63
public function withQualifiedName(QualifiedNameForm $qualifiedName): selfReturns a copy with a new qualifiedName, preserving every other field.
Parameters
$qualifiedName | QualifiedNameForm |
Returns
selfCalls 1
- new
selfline 71
public function withOptTableElementList(OptTableElementListForm $optTableElementList): selfReturns a copy with a new optTableElementList, preserving every other field.
Parameters
$optTableElementList | OptTableElementListForm |
Returns
selfCalls 1
- new
selfline 79
public function withOptInherit(OptInheritForm $optInherit): selfReturns a copy with a new optInherit, preserving every other field.
Parameters
$optInherit | OptInheritForm |
Returns
selfCalls 1
- new
selfline 87
public function withName(NameForm $name): selfpublic function withCreateGenericOptions(CreateGenericOptionsForm $createGenericOptions): selfReturns a copy with a new createGenericOptions, preserving every other field.
Parameters
$createGenericOptions | CreateGenericOptionsForm |
Returns
selfCalls 1
- new
selfline 103