Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class Util { |
||
18 | /** |
||
19 | * Get invoice number. |
||
20 | * |
||
21 | * @param string $invoice_number |
||
22 | * @param Payment $payment |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 6 | public static function get_invoice_number( $invoice_number, Payment $payment ) { |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get first service name from transaction. |
||
51 | * |
||
52 | * @param object $transaction Transaction object. |
||
53 | * @return string|null |
||
54 | */ |
||
55 | 2 | public static function get_transaction_service( $transaction ) { |
|
69 |