classConstraintElemWithForeignKeyColumnListReferencesQualifiedNameOptColumnListKeyMatchKeyActionsC_310bf3aa
final class ConstraintElemWithForeignKeyColumnListReferencesQualifiedNameOptColumnListKeyMatchKeyActionsC_310bf3aa
implements ConstraintElemForm, OptTableElementListForm, TableConstraintForm, TableElementForm, TableElementListForm, TypedTableElementForm, TypedTableElementListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The ConstraintElem SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\ConstraintElemWithForeignKeyColumnListReferencesQualifiedNameOptColumnListKeyMatchKeyActionsC_310bf3aa $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ColumnListForm $columnListpublic QualifiedNameForm $qualifiedNamepublic OptColumnListForm $optColumnListpublic KeyMatchForm $keyMatchpublic KeyActionsForm $keyActionspublic ConstraintAttributeSpecForm $constraintAttributeSpecpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ColumnListForm $columnList,
public QualifiedNameForm $qualifiedName,
public OptColumnListForm $optColumnList,
public KeyMatchForm $keyMatch,
public KeyActionsForm $keyActions,
public ConstraintAttributeSpecForm $constraintAttributeSpec,
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
$columnList | ColumnListForm | |
$qualifiedName | QualifiedNameForm | |
$optColumnList | OptColumnListForm | |
$keyMatch | KeyMatchForm | |
$keyActions | KeyActionsForm | |
$constraintAttributeSpec | ConstraintAttributeSpecForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 8
- method-call Writer::comments() line 44
- method-call Writer::append() line 45
- method-call ColumnListForm::write() line 51
- method-call QualifiedNameForm::write() line 57
- method-call OptColumnListForm::write() line 59
- method-call KeyMatchForm::write() line 61
- method-call KeyActionsForm::write() line 63
- method-call ConstraintAttributeSpecForm::write() line 65
public function withColumnList(ColumnListForm $columnList): selfReturns a copy with a new columnList, preserving every other field.
Parameters
$columnList | ColumnListForm |
Returns
selfCalls 1
- new
selfline 73
public function withQualifiedName(QualifiedNameForm $qualifiedName): selfReturns a copy with a new qualifiedName, preserving every other field.
Parameters
$qualifiedName | QualifiedNameForm |
Returns
selfCalls 1
- new
selfline 81
public function withOptColumnList(OptColumnListForm $optColumnList): selfReturns a copy with a new optColumnList, preserving every other field.
Parameters
$optColumnList | OptColumnListForm |
Returns
selfCalls 1
- new
selfline 89
public function withKeyMatch(KeyMatchForm $keyMatch): selfReturns a copy with a new keyMatch, preserving every other field.
Parameters
$keyMatch | KeyMatchForm |
Returns
selfCalls 1
- new
selfline 97
public function withKeyActions(KeyActionsForm $keyActions): selfReturns a copy with a new keyActions, preserving every other field.
Parameters
$keyActions | KeyActionsForm |
Returns
selfCalls 1
- new
selfline 105
public function withConstraintAttributeSpec(ConstraintAttributeSpecForm $constraintAttributeSpec): selfReturns a copy with a new constraintAttributeSpec, preserving every other field.
Parameters
$constraintAttributeSpec | ConstraintAttributeSpecForm |
Returns
selfCalls 1
- new
selfline 113