final class CreateTableLikeMutation
    implements ShadowMutation

Applies CREATE TABLE ... LIKE ... operation to the virtual schema. This mutation copies the TableDefinition from an existing table to a new table.

Methods§

public function __construct(
    string $tableName,
    string $sourceTableName,
    TableDefinitionRegistry $registry,
    bool $ifNotExists = false,
)

Binds the instance to what it will work from.

Parameters

$tableNamestring
$sourceTableNamestring
$registryTableDefinitionRegistry
$ifNotExistsbool
public function tableName(): string

{@inheritDoc}

Returns

string
Test cases 1

Private surface 4§

Implementation details, listed for orientation only.

private string $tableName
private string $sourceTableName
private TableDefinitionRegistry $registry
private bool $ifNotExists

Test cases 14§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 8

Relations§

Instantiated in 2