1 | <?php |
||
29 | abstract class TemplateFormField extends Template { |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | public $title; |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @var \hemio\html\Interface_\Submittable |
||
40 | */ |
||
41 | protected $control; |
||
42 | |||
43 | /** |
||
44 | * |
||
45 | * @var Abstract_\FormField |
||
46 | */ |
||
47 | public $field; |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @var callable |
||
52 | */ |
||
53 | protected $postInitHook; |
||
54 | |||
55 | abstract public function init(FormField $field, Submittable $control); |
||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @return \hemio\html\Interface_\Submittable |
||
60 | */ |
||
61 | public function getControl() { |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @param \hemio\html\Interface_\Submittable $control |
||
68 | * @return \hemio\html\Interface_\Submittable |
||
69 | */ |
||
70 | public function setControl(\hemio\html\Interface_\Submittable $control) { |
||
74 | |||
75 | /** |
||
76 | * |
||
77 | * @param \hemio\form\Abstract_\FormField $field |
||
78 | * @return \hemio\form\Abstract_\FormField |
||
79 | */ |
||
80 | public function setField(FormField $field) { |
||
84 | |||
85 | /** |
||
86 | * |
||
87 | * @param \hemio\form\Abstract_\callable $function |
||
88 | */ |
||
89 | public function setPostInitHook(callable $function) { |
||
92 | |||
93 | } |
||
94 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..