1 | <?php |
||
16 | abstract class BaseWidget extends Widget |
||
17 | { |
||
18 | use ModuleTrait; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public $entity; |
||
24 | |||
25 | /** |
||
26 | * @var null|\yii\db\ActiveRecord |
||
27 | */ |
||
28 | public $model; |
||
29 | |||
30 | /** |
||
31 | * @var null|integer; |
||
32 | */ |
||
33 | public $targetId; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | public $voteUrl; |
||
39 | |||
40 | /** |
||
41 | * @var null|\hauntd\vote\models\VoteAggregate |
||
42 | */ |
||
43 | public $aggregateModel; |
||
44 | |||
45 | /** |
||
46 | * @var null|integer |
||
47 | */ |
||
48 | public $userValue = null; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | public $jsBeforeVote; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | public $jsAfterVote; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | */ |
||
63 | public $jsCodeKey = 'vote'; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | public $jsErrorVote; |
||
69 | |||
70 | /** |
||
71 | * @var string |
||
72 | */ |
||
73 | public $jsShowMessage; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | */ |
||
78 | public $jsChangeCounters; |
||
79 | |||
80 | /** |
||
81 | * @var array |
||
82 | */ |
||
83 | public $options = []; |
||
84 | |||
85 | /** |
||
86 | * @var string |
||
87 | */ |
||
88 | public $viewFile = 'vote'; |
||
89 | |||
90 | /** |
||
91 | * @param $classes |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getSelector($classes) |
||
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | * @throws \yii\base\InvalidConfigException |
||
103 | */ |
||
104 | public function init() |
||
118 | |||
119 | /** |
||
120 | * Initialize widget with default options. |
||
121 | * |
||
122 | * @throws \yii\base\InvalidConfigException |
||
123 | */ |
||
124 | public function initDefaults() |
||
139 | |||
140 | /** |
||
141 | * Initialize default JS events. |
||
142 | */ |
||
143 | public function initJsEvents() |
||
157 | } |
||
158 |
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..