classCreateTableOptionsWithCreateTableOptionsOptCommaCreateTableOption_1a46c03c
final class CreateTableOptionsWithCreateTableOptionsOptCommaCreateTableOption_1a46c03c
implements CreateTableOptionsForm, OptCreateTableOptionsForm
uses Assertion
Public API: explicitly declared with
@visibility public.The create_table_options SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\CreateTableOptionsWithCreateTableOptionsOptCommaCreateTableOption_1a46c03c $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public CreateTableOptionsForm $createTableOptionspublic OptCommaForm $optCommapublic CreateTableOptionForm $createTableOptionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public CreateTableOptionsForm $createTableOptions,
public OptCommaForm $optComma,
public CreateTableOptionForm $createTableOption,
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
$createTableOptions | CreateTableOptionsForm | |
$optComma | OptCommaForm | |
$createTableOption | CreateTableOptionForm | |
$comments | Comments |
Calls 3
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 CreateTableOptionsForm::write() line 39
- method-call OptCommaForm::write() line 41
- method-call CreateTableOptionForm::write() line 43
public function withCreateTableOptions(CreateTableOptionsForm $createTableOptions): selfReturns a copy with a new createTableOptions, preserving every other field.
Parameters
$createTableOptions | CreateTableOptionsForm |
Returns
selfCalls 1
- new
selfline 51
public function withOptComma(OptCommaForm $optComma): selfReturns a copy with a new optComma, preserving every other field.
Parameters
$optComma | OptCommaForm |
Returns
selfCalls 1
- new
selfline 59
public function withCreateTableOption(CreateTableOptionForm $createTableOption): selfReturns a copy with a new createTableOption, preserving every other field.
Parameters
$createTableOption | CreateTableOptionForm |
Returns
selfCalls 1
- new
selfline 67