classRelationCounts
final class RelationCounts
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Chooses child row counts within a relation cardinality.
Methods§
public function __construct(private Generator $faker)Draws counts from the same source as fixture generation.
Parameters
$faker | Generator |
Chooses a child count within the relation bounds unless explicitly overridden.
Returns
intTest cases 1
Called from 1
Calls 4
- method-call Relation::minimumChildRows() line 36
- method-call Relation::maximumChildRows() line 37
- class-const RelationCounts::DEFAULT_SPREAD() line 37
- method-call
Generator::numberBetween()line 39
Private surface 2§
Implementation details, listed for orientation only.
private const DEFAULT_SPREAD = 4private Generator $fakerTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 6
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsFixtureProviderTestcallsSqlSchemaProviderTestcalls