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 74
Called from 3
public function get(string $tableName): ?TableDefinition

Return a table definition when present.

Parameters

$tableNamestring
Test cases 31
Called from 6
public function hasAnyTables(): bool

Check whether at least one table is registered.

Returns

bool
Test cases 2

Private surface 2§

Implementation details, listed for orientation only.

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

Test cases 146§

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 132

Relations§

Instantiated in 2
Method calls 16
Type declarations 19