1 | <?php |
||
19 | abstract class CommandType extends AbstractType |
||
20 | { |
||
21 | /** |
||
22 | * The class name of the Command. |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | abstract protected function getCommandClass(); |
||
27 | |||
28 | /** |
||
29 | * Override this to pre-populate the default options of the OptionsResolver. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | protected function getDefaultOptions() |
||
37 | |||
38 | /** |
||
39 | * @param FormInterface $form |
||
40 | * @param Options $options |
||
41 | * |
||
42 | * @return Command |
||
43 | */ |
||
44 | protected function createCommandFromData(FormInterface $form, Options $options) |
||
55 | |||
56 | /** |
||
57 | * @param OptionsResolver $resolver |
||
58 | */ |
||
59 | public function configureOptions(OptionsResolver $resolver) |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getBlockPrefix() |
||
82 | } |
||
83 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.