final class DefinitionList
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Splits table definitions while tracking parentheses.

Methods§

public function parseColumns(
    string $columnsBlock,
    string $tableName,
    list<string> $tablePrimaryKeys,
): array<string, ColumnDefinition>
public function splitColumnDefinitions(string $columnsBlock): list<string>

Separates column definitions while preserving nested and quoted SQL.

Parameters

$columnsBlockstring

Returns

list<string>
Test cases 1
Called from 1
Calls 2
public function isTableConstraint(string $definition): bool

Recognizes table constraints that do not declare a column.

Parameters

$definitionstring

Returns

bool
Test cases 1
Called from 1
Calls 2

Test cases 12§

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

Dedicated tests 3
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Method calls 1