Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
3 | interface EcommercePaymentSupportedMethodsProviderInterface |
||
4 | { |
||
5 | /** |
||
6 | * how can the customer pay? |
||
7 | * @param mixed $order |
||
8 | * |
||
9 | * @return array |
||
10 | */ |
||
11 | public function SupportedMethods($order); |
||
12 | |||
13 | /** |
||
14 | * assign the right payment gateways for the user |
||
15 | * @param string (optional) $gateway |
||
16 | */ |
||
17 | public static function assign_payment_gateway($gateway = ""); |
||
18 | } |
||
19 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.