Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
20 | { |
||
21 | $builder |
||
22 | ->add('minAmount', IntegerType::class, [ |
||
23 | 'constraints' => [ |
||
24 | new NotBlank([ |
||
25 | 'groups' => 'ph', |
||
26 | ]), |
||
27 | new Range([ |
||
28 | 'min' => 0, |
||
29 | 'groups' => 'ph', |
||
30 | ]), |
||
31 | new Type('integer'), |
||
32 | ], |
||
33 | ]) |
||
34 | ->add('maxAmount', IntegerType::class, [ |
||
35 | 'constraints' => [ |
||
36 | new NotBlank([ |
||
37 | 'groups' => 'ph', |
||
38 | ]), |
||
39 | new Type('integer'), |
||
40 | ], |
||
41 | ]) |
||
42 | ; |
||
43 | } |
||
44 | } |
||
45 |