interfaceTypeMapperInterface
interface TypeMapperInterface
Generates one value matching the declared SQL column.
Methods§
public function generate(Generator $faker, ColumnDefinition $column): mixedGenerate a Faker value based on column definition.
Parameters
$faker | Generator | |
$column | ColumnDefinition |
Returns
mixedCalled from 1
Test cases 18§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TypeMapperInterfaceTestcalls
Other tests reaching this symbol 17
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsRowGenerationTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsMySqlTypeMapperTestcallsPlatformFactoryTestcallsPostgreSqlTypeMapperTestcallsSqliteTypeMapperTestcallsSqlSchemaProviderTestcallsMySqlTypeMapperTestcalls
Relations§
Implemented by 4
- MySqlTypeMapper packages/sql-fixture/src/Platform/MySql/MySqlTypeMapper.php:14
- PostgreSqlTypeMapper packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlTypeMapper.php:21
- SqliteTypeMapper packages/sql-fixture/src/Platform/Sqlite/SqliteTypeMapper.php:21
- MySqlTypeMapper packages/sql-fixture/src/TypeMapper/MySqlTypeMapper.php:14
Method calls 1
Type declarations 7
- type SqlFixture\DatabaseFixtureProvider packages/sql-fixture/src/DatabaseFixtureProvider.php:42
- type SqlFixture\FileFixtureProvider packages/sql-fixture/src/FileFixtureProvider.php:33
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:21
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:30
- type SqlFixture\FixtureGenerator packages/sql-fixture/src/FixtureGenerator.php:90
- type SqlFixture\FixtureProvider packages/sql-fixture/src/FixtureProvider.php:46
- type SqlFixture\Platform\PlatformFactory packages/sql-fixture/src/Platform/PlatformFactory.php:61