1 | <?php |
||
15 | class ActivityDeleteAction extends AbstractAction { |
||
16 | |||
17 | /** |
||
18 | * @param OptionsResolver $resolver |
||
19 | */ |
||
20 | public function configureParams(OptionsResolver $resolver) { |
||
23 | |||
24 | /** |
||
25 | * Automatically generated run method |
||
26 | * |
||
27 | * @param Request $request |
||
28 | * @return Response |
||
29 | */ |
||
30 | public function run(Request $request) { |
||
36 | } |
||
37 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: