final class RowGenerator
    implements RowGeneration

Generates schema-driven rows using injected value and hydration contracts.

Methods§

public function __construct(
    private Generator $faker,
    private TypeMapperInterface $typeMapper,
    private HydratorInterface $hydrator,
)

Supplies the behavior needed to realize a row without selecting a platform.

Parameters

$fakerGenerator
$typeMapperTypeMapperInterface
$hydratorHydratorInterface
public function generate<T of object>(
    TableSchema $schema,
    array<mixed> $overrides = [],
    class-string<T>|null $className = null,
): ($className is null ? array<string, mixed> : T)

Private surface 3§

Implementation details, listed for orientation only.

private Generator $faker
private TypeMapperInterface $typeMapper
private HydratorInterface $hydrator

Test cases 9§

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

Dedicated tests 2
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1