final class Create2WithOptCreateTableOptionsOptCreatePartitioningCreate3_933517e1
    implements Create2Form
    uses Assertion
Public API: explicitly declared with @visibility public.

The create2 SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\Create2WithOptCreateTableOptionsOptCreatePartitioningCreate3_933517e1 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public OptCreateTableOptionsForm $optCreateTableOptions
public OptCreatePartitioningForm $optCreatePartitioning
public Create3Form $create3
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptCreateTableOptionsForm $optCreateTableOptions,
    public OptCreatePartitioningForm $optCreatePartitioning,
    public Create3Form $create3,
    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

$optCreateTableOptionsOptCreateTableOptionsForm
$optCreatePartitioningOptCreatePartitioningForm
$create3Create3Form
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 4
public function withOptCreateTableOptions(OptCreateTableOptionsForm $optCreateTableOptions): self

Returns a copy with a new optCreateTableOptions, preserving every other field.

Parameters

$optCreateTableOptionsOptCreateTableOptionsForm

Returns

self
Calls 1
public function withOptCreatePartitioning(OptCreatePartitioningForm $optCreatePartitioning): self

Returns a copy with a new optCreatePartitioning, preserving every other field.

Parameters

$optCreatePartitioningOptCreatePartitioningForm

Returns

self
Calls 1
public function withCreate3(Create3Form $create3): self

Returns a copy with a new create3, preserving every other field.

Parameters

$create3Create3Form

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1