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

Application-supplied SQL policies and connection identities.

Methods§

public function __construct(
    private array<string, Dialect> $dialects = [],
    private array<string, string> $connections = [],
)

Parameters

$dialectsarray<string, Dialect>Policies keyed by configured identity
$connectionsarray<string, string>Framework class names mapped to policy identities
public function hasConnection(?string $class): bool

Whether the application registered this connection class.

Parameters

$class?string

Returns

bool
Test cases 1
Called from 1
public function connection(?string $class, ?string $default): ?string

The language implied by a connection, otherwise the configured default.

Parameters

$class?string
$default?string

Returns

?string
Test cases 1
Called from 1

Private surface 2§

Implementation details, listed for orientation only.

private array<string, Dialect> $dialects = []
private array<string, string> $connections = []

Test cases 5§

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 2

Relations§

Instantiated in 6
Method calls 9
Type declarations 6