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 | public function __construct(Form $form) { |
||
25 | |||
26 | /** |
||
27 | * Return the event's form. |
||
28 | * |
||
29 | * @return Form |
||
30 | */ |
||
31 | public function getForm() { |
||
34 | } |
||
35 |
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.