1 | <?php |
||
8 | class GatewayInfo |
||
9 | { |
||
10 | /** |
||
11 | * Config accessor |
||
12 | * @return Config_ForClass |
||
13 | */ |
||
14 | public static function config() |
||
18 | |||
19 | /** |
||
20 | * Get the available configured payment types, optionally with i18n readable names. |
||
21 | * @param bool $nice make the array values i18n readable. |
||
22 | * @return array map of gateway short name to translated long name. |
||
23 | */ |
||
24 | public static function getSupportedGateways($nice = true) |
||
38 | |||
39 | /** |
||
40 | * Get a locale aware title for the given gateway |
||
41 | * @param string $name gateway short name |
||
42 | * @return string nice title for the gateway. Uses translations, if available |
||
43 | */ |
||
44 | public static function niceTitle($name) |
||
58 | |||
59 | /** |
||
60 | * Find out if the given gateway is supported. |
||
61 | * @param string $gateway gateway name to check |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public static function isSupported($gateway) |
||
69 | |||
70 | /** |
||
71 | * Checks if the given gateway name is an off-site gateway. |
||
72 | * |
||
73 | * @param string $gateway gateway name |
||
74 | * @throws RuntimeException |
||
75 | * @return boolean the gateway offsite or not |
||
76 | */ |
||
77 | public static function isOffsite($gateway) |
||
90 | |||
91 | /** |
||
92 | * Check for special 'manual' payment type. |
||
93 | * @param string $gateway |
||
94 | * @return boolean |
||
95 | */ |
||
96 | public static function isManual($gateway) |
||
107 | |||
108 | /** |
||
109 | * Get the required parameters for a given gateway |
||
110 | * @param string $gateway gateway name |
||
111 | * @return array required parameters |
||
112 | */ |
||
113 | public static function requiredFields($gateway) |
||
131 | |||
132 | |||
133 | /** |
||
134 | * Get the gateway config-parameters. |
||
135 | * |
||
136 | * @param string $gateway the gateway name |
||
137 | * @return array|null gateway parameters |
||
138 | */ |
||
139 | public static function getParameters($gateway) |
||
147 | |||
148 | // ----------------------------------------------------------------------------------------------------------------- |
||
149 | // Deprecated methods. |
||
150 | // TODO: Remove with 3.0 |
||
151 | // ----------------------------------------------------------------------------------------------------------------- |
||
152 | |||
153 | /** |
||
154 | * Get the available configured payment types, optionally with i18n readable names. |
||
155 | * @param bool $nice make the array values i18n readable. |
||
156 | * @return array map of gateway short name to translated long name. |
||
157 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use getSupportedGateways |
||
158 | */ |
||
159 | public static function get_supported_gateways($nice = true) |
||
164 | |||
165 | /** |
||
166 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use niceTitle |
||
167 | */ |
||
168 | public static function nice_title($name) |
||
173 | |||
174 | /** |
||
175 | * Find out if the given gateway is supported. |
||
176 | * @param string $gateway gateway name to check |
||
177 | * @return boolean |
||
178 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use isSupported |
||
179 | */ |
||
180 | public static function is_supported($gateway) |
||
185 | |||
186 | /** |
||
187 | * Checks if the given gateway name is an off-site gateway. |
||
188 | * |
||
189 | * @param string $gateway gateway name |
||
190 | * @throws RuntimeException |
||
191 | * @return boolean the gateway offsite or not |
||
192 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use isOffsite |
||
193 | */ |
||
194 | public static function is_offsite($gateway) |
||
199 | |||
200 | /** |
||
201 | * Check for special 'manual' payment type. |
||
202 | * @param string $gateway |
||
203 | * @return boolean |
||
204 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use isManual |
||
205 | */ |
||
206 | public static function is_manual($gateway) |
||
211 | |||
212 | /** |
||
213 | * Get the required parameters for a given gateway |
||
214 | * @param string $gateway gateway name |
||
215 | * @return array required parameters |
||
216 | * @deprecated 3.0 Snake-case methods will be deprecated with 3.0, use requiredFields |
||
217 | */ |
||
218 | public static function required_fields($gateway) |
||
223 | } |
||
224 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.