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

Assembles the dialect collaborators used by the Faker providers.

Methods§

public static function forMySql(
    Generator $faker,
    Grammar $grammar,
    string $version,
    ?GrammarCoverage $coverage = null,
): SqlGenerator

Binds the release's grammar and lexical behavior to a SQL generator.

Parameters

$fakerGenerator
$grammarGrammar
$versionstring
$coverage?GrammarCoverage
Test cases 1
Called from 1
Calls 2
public static function forPostgreSql(
    Generator $faker,
    Grammar $grammar,
    string $version,
    ?GrammarCoverage $coverage = null,
): SqlGenerator

Binds the release's grammar and lexical behavior to a SQL generator.

Parameters

$fakerGenerator
$grammarGrammar
$versionstring
$coverage?GrammarCoverage
Test cases 1
Called from 1
Calls 2
public static function forSqlite(
    Generator $faker,
    Grammar $grammar,
    string $version,
    ?GrammarCoverage $coverage = null,
): SqlGenerator

Binds the release's grammar and lexical behavior to a SQL generator.

Parameters

$fakerGenerator
$grammarGrammar
$versionstring
$coverage?GrammarCoverage
Test cases 1
Called from 1
Calls 2

Test cases 6§

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 3

Relations§

Static calls 3