classAlterListItemWithAddColumnCreateFieldList_2d7e8e00
final class AlterListItemWithAddColumnCreateFieldList_2d7e8e00
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\AlterListItemWithAddColumnCreateFieldList_2d7e8e00 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AddColumnForm $addColumnpublic CreateFieldListForm $createFieldListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AddColumnForm $addColumn,
public CreateFieldListForm $createFieldList,
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
$addColumn | AddColumnForm | |
$createFieldList | CreateFieldListForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call AlterListItemWithAddColumnCreateFieldList_2d7e8e00::assert() line 27
- static-call Contracts::contains() line 27
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 36
- method-call AddColumnForm::write() line 37
- method-call Writer::append() line 39
- method-call CreateFieldListForm::write() line 41
public function withAddColumn(AddColumnForm $addColumn): selfReturns a copy with a new addColumn, preserving every other field.
Parameters
$addColumn | AddColumnForm |
Returns
selfCalls 1
- new
selfline 51
public function withCreateFieldList(CreateFieldListForm $createFieldList): selfReturns a copy with a new createFieldList, preserving every other field.
Parameters
$createFieldList | CreateFieldListForm |
Returns
selfCalls 1
- new
selfline 59