classColumnDefWithIdentFieldDefOptReferences_fecb2498
final class ColumnDefWithIdentFieldDefOptReferences_fecb2498
implements ColumnDefForm, CreateFieldListForm, FieldListForm, FieldListItemForm, TableElementForm, TableElementListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The column_def SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\ColumnDefWithIdentFieldDefOptReferences_fecb2498 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IdentForm $identpublic FieldDefForm $fieldDefpublic OptReferencesForm $optReferencespublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IdentForm $ident,
public FieldDefForm $fieldDef,
public OptReferencesForm $optReferences,
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
$ident | IdentForm | |
$fieldDef | FieldDefForm | |
$optReferences | OptReferencesForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call ColumnDefWithIdentFieldDefOptReferences_fecb2498::assert() line 28
- static-call Contracts::contains() line 28
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 38
- method-call IdentForm::write() line 39
- method-call FieldDefForm::write() line 41
- method-call OptReferencesForm::write() line 43
public function withIdent(IdentForm $ident): selfpublic function withFieldDef(FieldDefForm $fieldDef): selfReturns a copy with a new fieldDef, preserving every other field.
Parameters
$fieldDef | FieldDefForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptReferences(OptReferencesForm $optReferences): selfReturns a copy with a new optReferences, preserving every other field.
Parameters
$optReferences | OptReferencesForm |
Returns
selfCalls 1
- new
selfline 67