Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CompositionOptionsForm extends AbstractType |
||
13 | { |
||
14 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
15 | { |
||
16 | /** @var RuleHelperInterface $helper */ |
||
17 | $helper = $options['helper']; |
||
18 | |||
19 | if ($options['creation_options']) { |
||
20 | $builder->add('creationOptions', $helper->getTeamCreationForm(), [ |
||
21 | 'team' => $builder->getData(), |
||
22 | 'helper' => $helper |
||
23 | ]); |
||
24 | } |
||
25 | } |
||
26 | |||
27 | public function configureOptions(OptionsResolver $resolver) |
||
37 | } |
||
38 | } |
||
39 |