classKeyDefWithOptConstraintForeignKeySymOptIdentKeyListReferences_79d4ec54
final class KeyDefWithOptConstraintForeignKeySymOptIdentKeyListReferences_79d4ec54
implements CreateFieldListForm, FieldListForm, FieldListItemForm, KeyDefForm
uses Assertion
Public API: explicitly declared with
@visibility public.The key_def SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\KeyDefWithOptConstraintForeignKeySymOptIdentKeyListReferences_79d4ec54 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptConstraintForm $optConstraintpublic OptIdentForm $optIdentpublic KeyListForm $keyListpublic ReferencesForm $referencespublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptConstraintForm $optConstraint,
public OptIdentForm $optIdent,
public KeyListForm $keyList,
public ReferencesForm $references,
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
$optConstraint | OptConstraintForm | |
$optIdent | OptIdentForm | |
$keyList | KeyListForm | |
$references | ReferencesForm | |
$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 OptConstraintForm::write() line 41
- method-call Writer::append() line 43
- method-call OptIdentForm::write() line 47
- method-call KeyListForm::write() line 51
- method-call ReferencesForm::write() line 55
public function withOptConstraint(OptConstraintForm $optConstraint): selfReturns a copy with a new optConstraint, preserving every other field.
Parameters
$optConstraint | OptConstraintForm |
Returns
selfCalls 1
- new
selfline 63
public function withOptIdent(OptIdentForm $optIdent): selfReturns a copy with a new optIdent, preserving every other field.
Parameters
$optIdent | OptIdentForm |
Returns
selfCalls 1
- new
selfline 71
public function withKeyList(KeyListForm $keyList): selfReturns a copy with a new keyList, preserving every other field.
Parameters
$keyList | KeyListForm |
Returns
selfCalls 1
- new
selfline 79
public function withReferences(ReferencesForm $references): selfReturns a copy with a new references, preserving every other field.
Parameters
$references | ReferencesForm |
Returns
selfCalls 1
- new
selfline 87