final class TableDefinitionRegistry

Stores TableDefinition instances keyed by table name.

Methods§

public function register(string $tableName, TableDefinition $definition): void

Register or replace a table definition.

Parameters

$tableNamestring
$definitionTableDefinition
Test cases 880
Called from 12
public function get(string $tableName): ?TableDefinition

Return a table definition when present.

Parameters

$tableNamestring
Test cases 233
Called from 37
public function has(string $tableName): bool

Check whether a table is registered.

Parameters

$tableNamestring

Returns

bool
Test cases 24
Called from 20
public function unregister(string $tableName): void

Remove a registered table.

Parameters

$tableNamestring
Test cases 87
Called from 2
public function markRemoved(string $tableName): void

Private surface 2§

Implementation details, listed for orientation only.

private array<string, TableDefinition> $definitions = []
private array<string, TableDefinition> $removedDefinitions = []

Test cases 1279§

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

Dedicated tests 14
Other tests reaching this symbol 1265

Relations§

Instantiated in 5
Method calls 86
Type declarations 63