| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | abstract class GenericDisplayElement extends AbstractElement implements Element |
||
| 19 | { |
||
| 20 | public function getRoute(): string |
||
| 21 | { |
||
| 22 | return 'fsi_admin_display'; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function configureOptions(OptionsResolver $resolver): void |
||
| 26 | { |
||
| 27 | $resolver->setDefaults([ |
||
| 28 | 'template' => null, |
||
| 29 | ]); |
||
| 30 | |||
| 31 | $resolver->setAllowedTypes('template', ['null', 'string']); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function createDisplay($data): Display |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param object $data |
||
| 41 | * @return Display |
||
| 42 | */ |
||
| 43 | abstract protected function initDisplay($data): Display; |
||
| 44 | } |
||
| 45 |