Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 72.72% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class GatewayException extends RuntimeException |
||
10 | { |
||
11 | 1 | public static function notImplemented($transaction, $gateway): self |
|
12 | { |
||
13 | 1 | return new self( |
|
14 | 1 | sprintf("Gateway `%s` does not support `%s` transaction", $gateway, $transaction) |
|
15 | 1 | ); |
|
16 | } |
||
17 | |||
18 | 1 | public static function invalidGatewayName($name): self |
|
22 | 1 | ); |
|
23 | } |
||
24 | |||
25 | public static function gatewayAlreadyRegistered($name): self |
||
29 | ); |
||
30 | } |
||
32 |