classAlterListItemWithAddColumnColumnDefOptPlace_4b1261e2
final class AlterListItemWithAddColumnColumnDefOptPlace_4b1261e2
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\AlterListItemWithAddColumnColumnDefOptPlace_4b1261e2 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AddColumnForm $addColumnpublic ColumnDefForm $columnDefpublic OptPlaceForm $optPlacepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AddColumnForm $addColumn,
public ColumnDefForm $columnDef,
public OptPlaceForm $optPlace,
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 | |
$columnDef | ColumnDefForm | |
$optPlace | OptPlaceForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call AlterListItemWithAddColumnColumnDefOptPlace_4b1261e2::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 AddColumnForm::write() line 39
- method-call ColumnDefForm::write() line 41
- method-call OptPlaceForm::write() line 43
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 withColumnDef(ColumnDefForm $columnDef): selfReturns a copy with a new columnDef, preserving every other field.
Parameters
$columnDef | ColumnDefForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptPlace(OptPlaceForm $optPlace): selfReturns a copy with a new optPlace, preserving every other field.
Parameters
$optPlace | OptPlaceForm |
Returns
selfCalls 1
- new
selfline 67