1 | <?php |
||
19 | class Install extends BaseInstaller |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Base module installer model |
||
24 | * @var \gplcart\modules\base\models\Installer $installer |
||
25 | */ |
||
26 | protected $model; |
||
27 | |||
28 | /** |
||
29 | * Module class instance |
||
30 | * @var \gplcart\core\Module $module |
||
31 | */ |
||
32 | protected $module; |
||
33 | |||
34 | /** |
||
35 | * @param Module $module |
||
36 | * @param ModuleModel $model |
||
37 | */ |
||
38 | public function __construct(Module $module, ModuleModel $model) |
||
45 | |||
46 | /** |
||
47 | * Performs initial system installation. Step 0 |
||
48 | * @param array $data |
||
49 | * @param \gplcart\core\Database $db |
||
50 | * @return array |
||
51 | */ |
||
52 | public function install(array $data, $db) |
||
75 | |||
76 | /** |
||
77 | * Install in CLI mode |
||
78 | * @return array |
||
79 | */ |
||
80 | protected function installCli() |
||
97 | |||
98 | /** |
||
99 | * Process step 1 in CLI mode |
||
100 | * @return array |
||
101 | */ |
||
102 | protected function installCliStep1() |
||
108 | |||
109 | /** |
||
110 | * Process step 2 in CLI mode |
||
111 | */ |
||
112 | protected function installCliStep2() |
||
128 | |||
129 | /** |
||
130 | * Precess step 3 in CLI mode |
||
131 | * @return array |
||
132 | */ |
||
133 | protected function installCliStep3() |
||
138 | |||
139 | /** |
||
140 | * Returns an array of demo content options |
||
141 | * @return array |
||
142 | */ |
||
143 | protected function getDemoOptions() |
||
154 | |||
155 | /** |
||
156 | * Installs required modules. Step 1 |
||
157 | * @param array $data |
||
158 | * @param \gplcart\core\Database $db |
||
159 | * @return array |
||
160 | */ |
||
161 | public function installModules(array $data, $db) |
||
187 | |||
188 | /** |
||
189 | * Configure module settings |
||
190 | */ |
||
191 | protected function configureModules() |
||
196 | |||
197 | /** |
||
198 | * Configure Device module settings |
||
199 | * @return bool |
||
200 | */ |
||
201 | protected function configureModuleDevice() |
||
211 | |||
212 | /** |
||
213 | * Configure Google Analytics Report module settings |
||
214 | * @return bool |
||
215 | */ |
||
216 | protected function configureModuleGaReport() |
||
232 | |||
233 | /** |
||
234 | * Install a demo-content. Step 2 |
||
235 | * @param array $data |
||
236 | * @param \gplcart\core\Database $db |
||
237 | * @return array |
||
238 | */ |
||
239 | public function installDemo(array $data, $db) |
||
264 | |||
265 | /** |
||
266 | * Performs final tasks. Step 3 |
||
267 | * @param array $data |
||
268 | * @param \gplcart\core\Database $db |
||
269 | * @return array |
||
270 | */ |
||
271 | public function installFinish(array $data, $db) |
||
286 | |||
287 | } |
||
288 |
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..