1 | <?php |
||
14 | class ConfigConfigurationModel extends BaseConfigurationModel |
||
15 | { |
||
16 | public $daysToStoreNotify = 28; |
||
17 | |||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | public function rules() |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function attributeLabels() |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function defaultValues() |
||
50 | |||
51 | /** |
||
52 | * Returns array of module configuration that should be stored in application config. |
||
53 | * Array should be ready to merge in app config. |
||
54 | * Used both for web only. |
||
55 | * |
||
56 | * @return array |
||
|
|||
57 | */ |
||
58 | public function webApplicationAttributes() |
||
67 | |||
68 | /** |
||
69 | * Returns array of module configuration that should be stored in application config. |
||
70 | * Array should be ready to merge in app config. |
||
71 | * Used both for console only. |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function consoleApplicationAttributes() |
||
85 | |||
86 | /** |
||
87 | * Returns array of module configuration that should be stored in application config. |
||
88 | * Array should be ready to merge in app config. |
||
89 | * Used both for web and console. |
||
90 | * |
||
91 | * @return array |
||
92 | */ |
||
93 | public function commonApplicationAttributes() |
||
97 | |||
98 | /** |
||
99 | * Returns array of key=>values for configuration. |
||
100 | * |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function keyValueAttributes() |
||
107 | |||
108 | /** |
||
109 | * Returns array of aliases that should be set in common config |
||
110 | * @return array |
||
111 | */ |
||
112 | public function aliases() |
||
118 | } |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.