1 | <?php |
||
19 | trait OverrideAppConfigTrait |
||
20 | { |
||
21 | /** |
||
22 | * Устанавливает конфиг приолжения |
||
23 | * |
||
24 | * @param $applicationConfig |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | abstract public function setApplicationConfig($applicationConfig); |
||
29 | |||
30 | /** |
||
31 | * Возвращает конфиг приложения |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | abstract public function getApplicationConfig(); |
||
36 | |||
37 | /** |
||
38 | * Расширяет конфиг приложения |
||
39 | * |
||
40 | * @param array $newConfig |
||
41 | * |
||
42 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
43 | * @throws \Zend\ServiceManager\Exception\InvalidServiceNameException |
||
44 | */ |
||
45 | public function overrideAppConfig(array $newConfig = []) |
||
85 | } |
||
86 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.