1 | <?php |
||
8 | class AfterFieldCreation |
||
9 | { |
||
10 | /** |
||
11 | * The form instance. |
||
12 | * |
||
13 | * @var Form |
||
14 | */ |
||
15 | protected $form; |
||
16 | |||
17 | /** |
||
18 | * The field instance. |
||
19 | * |
||
20 | * @var FormField |
||
21 | */ |
||
22 | protected $field; |
||
23 | |||
24 | /** |
||
25 | * Create a new after field creation instance. |
||
26 | * |
||
27 | * @param Form $form |
||
28 | * @param FormField $field |
||
29 | * @return void |
||
|
|||
30 | */ |
||
31 | public function __construct(Form $form, FormField $field) { |
||
35 | |||
36 | /** |
||
37 | * Return the event's form. |
||
38 | * |
||
39 | * @return Form |
||
40 | */ |
||
41 | public function getForm() { |
||
44 | |||
45 | /** |
||
46 | * Return the event's field. |
||
47 | * |
||
48 | * @return FormField |
||
49 | */ |
||
50 | public function getField() { |
||
53 | } |
||
54 |
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.