| Total Complexity | 5 |
| Total Lines | 82 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class PaymentMethods { |
||
| 18 | /** |
||
| 19 | * Constant for the Bancontact payment method. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | const BANCONTACT = 'BCMC'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constant for the MasterCard payment method. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | const MASTERCARD = 'M'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constant for the VISA (Credit/Debit/Electron/Delta) payment method. |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | const VISA = 'V'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Constant for the Maestro payment method. |
||
| 41 | * |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | const MAESTRO = 'MA'; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Constant for the Maestro UK payment method. |
||
| 48 | * |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | const MAESTROUK = 'maestroUK'; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Constant for the iDEAL payment method. |
||
| 55 | * |
||
| 56 | * @var string |
||
| 57 | */ |
||
| 58 | const IDEAL = 'ideal'; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Constant for the PayPal payment method. |
||
| 62 | * |
||
| 63 | * @var string |
||
| 64 | */ |
||
| 65 | const PAYPAL = 'paypal'; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Constant for the SOFORT Banking payment method. |
||
| 69 | * |
||
| 70 | * @var string |
||
| 71 | */ |
||
| 72 | const SOFORT = 'sofort'; |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Transform WordPress payment method to EMS payment method. |
||
| 76 | * |
||
| 77 | * @since 1.0.0 |
||
| 78 | * |
||
| 79 | * @param string $payment_method Payment method. |
||
| 80 | * |
||
| 81 | * @return string |
||
| 82 | */ |
||
| 83 | 4 | public static function transform( $payment_method ) { |
|
| 102 |