final class DropTableMutation
    implements ShadowMutation

Applies DROP TABLE operation to the virtual schema. This mutation marks a table as removed from the virtual schema and clears its rows.

Methods§

public function __construct(
    string $tableName,
    TableDefinitionRegistry $registry,
    string $sourceSql,
    bool $ifExists = false,
)

Binds the instance to what it will work from.

Parameters

$tableNamestring
$registryTableDefinitionRegistry
$sourceSqlstring
$ifExistsbool
public function tableName(): string

{@inheritDoc}

Returns

string
Test cases 1

Private surface 4§

Implementation details, listed for orientation only.

private string $tableName
private TableDefinitionRegistry $registry
private string $sourceSql
private bool $ifExists

Test cases 40§

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 34

Relations§

Instantiated in 4