1 | <?php |
||
17 | class OmnipayLibrary extends Module |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Library class instance |
||
22 | * @var \gplcart\core\Library $library |
||
23 | */ |
||
24 | protected $library; |
||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * @param Library $library |
||
29 | */ |
||
30 | public function __construct(Library $library) |
||
36 | |||
37 | /** |
||
38 | * Implements hook "library.list" |
||
39 | * @param array $libraries |
||
40 | */ |
||
41 | public function hookLibraryList(array &$libraries) |
||
56 | |||
57 | /** |
||
58 | * Retuns registered namespaces from composer's autoload file |
||
59 | * @return array |
||
60 | */ |
||
61 | protected function getGatewayNamespaces() |
||
72 | |||
73 | /** |
||
74 | * Returns an array of gateways extracted from registered namespaces |
||
75 | * @return array |
||
76 | */ |
||
77 | public function getGatewayIds() |
||
95 | |||
96 | /** |
||
97 | * Returns an array of registered gateway instances |
||
98 | * @return null|object|array |
||
99 | */ |
||
100 | public function getGatewayInstance($gateway = null) |
||
122 | |||
123 | /** |
||
124 | * Implements hook "module.enable.after" |
||
125 | */ |
||
126 | public function hookModuleEnableAfter() |
||
130 | |||
131 | /** |
||
132 | * Implements hook "module.disable.after" |
||
133 | */ |
||
134 | public function hookModuleDisableAfter() |
||
138 | |||
139 | /** |
||
140 | * Implements hook "module.install.after" |
||
141 | */ |
||
142 | public function hookModuleInstallAfter() |
||
146 | |||
147 | /** |
||
148 | * Implements hook "module.uninstall.after" |
||
149 | */ |
||
150 | public function hookModuleUninstallAfter() |
||
154 | |||
155 | } |
||
156 |
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..