| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class EditType extends AbstractEventTraitType |
||
| 21 | { |
||
| 22 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
| 23 | { |
||
| 24 | $builder->add('name', TextType::class); |
||
| 25 | $builder->add('organizer', TextType::class); |
||
| 26 | $builder->add('description', TextareaType::class); |
||
| 27 | |||
| 28 | $builder->add('startDate', DateTimeType::class, ['date_widget' => 'single_text', 'time_widget' => 'single_text']); |
||
| 29 | $builder->add('endDate', DateTimeType::class, ['date_widget' => 'single_text', 'time_widget' => 'single_text', 'required' => false]); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function configureOptions(OptionsResolver $resolver) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |