classNumericGenerator
final class NumericGenerator
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Generates numeric values for the dialect's declared column type.
Methods§
public function generate(Generator $faker, ColumnDefinition $column): int|float|boolGenerates a value for a supported member of this type family.
Parameters
$faker | Generator | |
$column | ColumnDefinition |
Returns
int|float|boolThrows
LogicExceptionTest cases 1
Called from 1
Calls 12
- function-call
strtoupperline 24 - method-call IntegerGenerator::generateTinyInt() line 25
- new IntegerGenerator line 25
- method-call IntegerGenerator::generateSmallInt() line 26
- method-call IntegerGenerator::generateMediumInt() line 27
- method-call IntegerGenerator::generateInt() line 28
- method-call IntegerGenerator::generateBigInt() line 29
- method-call
Generator::randomFloat()line 30 - method-call DecimalGenerator::generateDecimal() line 32
- new DecimalGenerator line 32
- method-call IntegerGenerator::generateBit() line 33
- new
LogicExceptionline 34
Test cases 17§
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 16
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsRowMaterializerTestcallsPlanGeneratorTestcallsRowGenerationTestcallsFixtureGeneratorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsMySqlTypeMapperTestcallsColumnGeneratorTestcallsPlatformFactoryTestcallsSqlSchemaProviderTestcallsMySqlTypeMapperTestcalls