1 | <?php |
||
7 | class AfterFormCreation |
||
8 | { |
||
9 | /** |
||
10 | * The form instance. |
||
11 | * |
||
12 | * @var Form |
||
13 | */ |
||
14 | protected $form; |
||
15 | |||
16 | /** |
||
17 | * Create a new after form creation instance. |
||
18 | * |
||
19 | * @param Form $form |
||
20 | * @return void |
||
|
|||
21 | */ |
||
22 | 110 | public function __construct(Form $form) { |
|
26 | |||
27 | /** |
||
28 | * Return the event's form. |
||
29 | * |
||
30 | * @return Form |
||
31 | */ |
||
32 | public function getForm() { |
||
35 | |||
36 | /** |
||
37 | * Init filter field process on Form creation. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | 110 | public function filterFields() |
|
45 | } |
||
46 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.