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

Reads the outer CREATE TABLE syntax.

Methods§

public function normalizeSql(string $sql): string

Normalizes the outer SQL text before parsing its declarations.

Parameters

$sqlstring

Returns

string
Test cases 1
Called from 1
Calls 2
public function extractTableName(string $sql): ?string

Reads the declared table identifier.

Parameters

$sqlstring

Returns

?string
Test cases 1
Called from 1
Calls 1
public function extractColumnsBlock(string $sql): ?string

Returns the parenthesized table definition body.

Parameters

$sqlstring

Returns

?string
Test cases 1
Called from 1
Calls 3
public function extractTablePrimaryKeys(string $columnsBlock): list<string>

Extract PRIMARY KEY column names from table-level PRIMARY KEY constraint.

Parameters

$columnsBlockstring

Returns

list<string>
Test cases 1
Called from 1
Calls 3

Test cases 18§

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

Dedicated tests 4
Other tests reaching this symbol 14

Relations§

Instantiated in 4
Method calls 4