Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function create(Table $table, Column $column, SchemaHelper $schemaHelper) : FakeDataGeneratorInterface |
||
20 | { |
||
21 | $unique = $schemaHelper->isColumnPartOfUniqueIndex($table, $column); |
||
22 | |||
23 | $inspector = new NumericColumnLimitHelper($column); |
||
24 | $min = $inspector->getMinNumericValue(); |
||
25 | $max = $inspector->getMaxNumericValue(); |
||
26 | |||
27 | return new NumericGenerator($column, $min, $max, $unique); |
||
28 | } |
||
30 |