classTableConstraintDefWithSpatialSymOptKeyOrIndexOptIdentKeyListWithExpressionOptSpatialIndexOptions_39f3760e
final class TableConstraintDefWithSpatialSymOptKeyOrIndexOptIdentKeyListWithExpressionOptSpatialIndexOptions_39f3760e
implements TableConstraintDefForm, TableElementForm, TableElementListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The table_constraint_def SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\TableConstraintDefWithSpatialSymOptKeyOrIndexOptIdentKeyListWithExpressionOptSpatialIndexOptions_39f3760e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptKeyOrIndexForm $optKeyOrIndexpublic OptIdentForm $optIdentpublic KeyListWithExpressionForm $keyListWithExpressionpublic OptSpatialIndexOptionsForm $optSpatialIndexOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptKeyOrIndexForm $optKeyOrIndex,
public OptIdentForm $optIdent,
public KeyListWithExpressionForm $keyListWithExpression,
public OptSpatialIndexOptionsForm $optSpatialIndexOptions,
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
$optKeyOrIndex | OptKeyOrIndexForm | |
$optIdent | OptIdentForm | |
$keyListWithExpression | KeyListWithExpressionForm | |
$optSpatialIndexOptions | OptSpatialIndexOptionsForm | |
$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 OptKeyOrIndexForm::write() line 43
- method-call OptIdentForm::write() line 45
- method-call KeyListWithExpressionForm::write() line 49
- method-call OptSpatialIndexOptionsForm::write() line 53
public function withOptKeyOrIndex(OptKeyOrIndexForm $optKeyOrIndex): selfReturns a copy with a new optKeyOrIndex, preserving every other field.
Parameters
$optKeyOrIndex | OptKeyOrIndexForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptIdent(OptIdentForm $optIdent): selfReturns a copy with a new optIdent, preserving every other field.
Parameters
$optIdent | OptIdentForm |
Returns
selfCalls 1
- new
selfline 69
public function withKeyListWithExpression(KeyListWithExpressionForm $keyListWithExpression): selfReturns a copy with a new keyListWithExpression, preserving every other field.
Parameters
$keyListWithExpression | KeyListWithExpressionForm |
Returns
selfCalls 1
- new
selfline 77
public function withOptSpatialIndexOptions(OptSpatialIndexOptionsForm $optSpatialIndexOptions): selfReturns a copy with a new optSpatialIndexOptions, preserving every other field.
Parameters
$optSpatialIndexOptions | OptSpatialIndexOptionsForm |
Returns
selfCalls 1
- new
selfline 85