Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ReportDataFetcherConfigurationType extends AbstractResourceType |
||
14 | { |
||
15 | /** |
||
16 | * @var DelegatingDataFetcherInterface |
||
17 | */ |
||
18 | protected $delegatingDataFetcher; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $dataFetcherConfigurationTemplate; |
||
24 | |||
25 | public function __construct( |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
40 | { |
||
41 | /** @var ReportInterface $report */ |
||
42 | $report = $builder->getData(); |
||
43 | $dataFetcher = $this->delegatingDataFetcher->getDataFetcher($report); |
||
44 | |||
45 | $builder->add('dataFetcherConfiguration', $dataFetcher->getType()); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getBlockPrefix() |
||
54 | } |
||
55 | } |
||
56 |