classAlterListItemWithDropOptColumnFieldIdentOptRestrict_6cc72288
final class AlterListItemWithDropOptColumnFieldIdentOptRestrict_6cc72288
implements AlterCommandListForm, AlterCommandsForm, AlterListForm, AlterListItemForm, OptAlterCommandListForm, OptAlterTableActionsForm
uses Assertion
Public API: explicitly declared with
@visibility public.The alter_list_item SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\AlterListItemWithDropOptColumnFieldIdentOptRestrict_6cc72288 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptColumnForm $optColumnpublic FieldIdentForm $fieldIdentpublic OptRestrictForm $optRestrictpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptColumnForm $optColumn,
public FieldIdentForm $fieldIdent,
public OptRestrictForm $optRestrict,
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
$optColumn | OptColumnForm | |
$fieldIdent | FieldIdentForm | |
$optRestrict | OptRestrictForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call AlterListItemWithDropOptColumnFieldIdentOptRestrict_6cc72288::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 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call OptColumnForm::write() line 41
- method-call FieldIdentForm::write() line 43
- method-call OptRestrictForm::write() line 45
public function withOptColumn(OptColumnForm $optColumn): selfReturns a copy with a new optColumn, preserving every other field.
Parameters
$optColumn | OptColumnForm |
Returns
selfCalls 1
- new
selfline 53
public function withFieldIdent(FieldIdentForm $fieldIdent): selfReturns a copy with a new fieldIdent, preserving every other field.
Parameters
$fieldIdent | FieldIdentForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptRestrict(OptRestrictForm $optRestrict): selfReturns a copy with a new optRestrict, preserving every other field.
Parameters
$optRestrict | OptRestrictForm |
Returns
selfCalls 1
- new
selfline 69