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

Names the generation plans this dialect's provider is built from.

A plan is how a caller says which SQL it wants, and the ones a provider offers are a fixed vocabulary rather than something each caller assembles. Naming them here keeps that vocabulary in one place and lets the provider read as a list of what it can generate.

Methods§

public static function quotedIdentifier(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function stringLiteral(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function integerLiteral(int $min, int $max): GenerationPlan<true>

Parameters

$minint
$maxint

Returns

Test cases 1
Called from 1
Calls 2
public static function decimalLiteral(int $precision, int $scale): GenerationPlan<true>

Parameters

$precisionint
$scaleint

Returns

Test cases 1
Called from 1
Calls 2
public static function multiDmlStatement(
    int $firstChoice,
    int $secondChoice,
): GenerationPlan<true>

Parameters

$firstChoiceint
$secondChoiceint

Returns

Throws

InvalidArgumentException When a choice does not name one of the three DML statements
Test cases 1
Called from 1
Calls 4
public static function statement(
    non-empty-string $startRule,
    int $maxDepth,
): GenerationPlan<false>

Directs a bounded walk that grows one statement from its own rule.

Parameters

$startRulenon-empty-stringRule the statement is grown from
$maxDepthintHow deep the walk may recurse

Returns

GenerationPlan<false> Plan for one bounded statement
Test cases 3
Called from 19
Calls 1
public static function statementOfType(
    Generator $faker,
    ?StatementRule $type,
    int $maxDepth,
): GenerationPlan<false>

Selects a statement type when omitted and bounds its generation plan.

Parameters

$fakerGenerator
$type?StatementRule
$maxDepthint

Returns

Test cases 2
Called from 1
Calls 3

Test cases 16§

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

Dedicated tests 15
Other tests reaching this symbol 1

Relations§

Static calls 31