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|floatGenerates a value for a supported member of this type family.
Parameters
$faker | Generator | |
$column | ColumnDefinition |
Returns
int|floatThrows
LogicExceptionTest cases 1
Called from 1
Calls 10
- function-call
strtoupperline 26 - class-const IntegerWidth::Bits16() line 28
- class-const IntegerWidth::Bits32() line 29
- class-const IntegerWidth::Bits64() line 30
- new IntegerRange line 34
- method-call
Generator::numberBetween()line 35 - method-call
Generator::randomFloat()line 38 - method-call DecimalGenerator::generateDecimal() line 40
- new DecimalGenerator line 40
- new
LogicExceptionline 42
Test cases 10§
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 9
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPostgreSqlTypeMapperTestcallsColumnGeneratorTestcallsSqlSchemaProviderTestcalls