classKeyDefWithSpatialOptKeyOrIndexOptIdentInitKeyOptionsKeyListSpatialKeyOptions_1d3d0c25
final class KeyDefWithSpatialOptKeyOrIndexOptIdentInitKeyOptionsKeyListSpatialKeyOptions_1d3d0c25
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\KeyDefWithSpatialOptKeyOrIndexOptIdentInitKeyOptionsKeyListSpatialKeyOptions_1d3d0c25 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SpatialForm $spatialpublic OptKeyOrIndexForm $optKeyOrIndexpublic OptIdentForm $optIdentpublic InitKeyOptionsForm $initKeyOptionspublic KeyListForm $keyListpublic SpatialKeyOptionsForm $spatialKeyOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public SpatialForm $spatial,
public OptKeyOrIndexForm $optKeyOrIndex,
public OptIdentForm $optIdent,
public InitKeyOptionsForm $initKeyOptions,
public KeyListForm $keyList,
public SpatialKeyOptionsForm $spatialKeyOptions,
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
$spatial | SpatialForm | |
$optKeyOrIndex | OptKeyOrIndexForm | |
$optIdent | OptIdentForm | |
$initKeyOptions | InitKeyOptionsForm | |
$keyList | KeyListForm | |
$spatialKeyOptions | SpatialKeyOptionsForm | |
$comments | Comments |
Calls 3
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 SpatialForm::write() line 45
- method-call OptKeyOrIndexForm::write() line 47
- method-call OptIdentForm::write() line 49
- method-call InitKeyOptionsForm::write() line 51
- method-call Writer::append() line 53
- method-call KeyListForm::write() line 55
- method-call SpatialKeyOptionsForm::write() line 59
public function withSpatial(SpatialForm $spatial): selfReturns a copy with a new spatial, preserving every other field.
Parameters
$spatial | SpatialForm |
Returns
selfCalls 1
- new
selfline 67
public function withOptKeyOrIndex(OptKeyOrIndexForm $optKeyOrIndex): selfReturns a copy with a new optKeyOrIndex, preserving every other field.
Parameters
$optKeyOrIndex | OptKeyOrIndexForm |
Returns
selfCalls 1
- new
selfline 75
public function withOptIdent(OptIdentForm $optIdent): selfReturns a copy with a new optIdent, preserving every other field.
Parameters
$optIdent | OptIdentForm |
Returns
selfCalls 1
- new
selfline 83
public function withInitKeyOptions(InitKeyOptionsForm $initKeyOptions): selfReturns a copy with a new initKeyOptions, preserving every other field.
Parameters
$initKeyOptions | InitKeyOptionsForm |
Returns
selfCalls 1
- new
selfline 91
public function withKeyList(KeyListForm $keyList): selfReturns a copy with a new keyList, preserving every other field.
Parameters
$keyList | KeyListForm |
Returns
selfCalls 1
- new
selfline 99
public function withSpatialKeyOptions(SpatialKeyOptionsForm $spatialKeyOptions): selfReturns a copy with a new spatialKeyOptions, preserving every other field.
Parameters
$spatialKeyOptions | SpatialKeyOptionsForm |
Returns
selfCalls 1
- new
selfline 107