| Total Complexity | 5 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Config extends GatewayConfig { |
||
| 24 | /** |
||
| 25 | * API Key. |
||
| 26 | * |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | public $api_key; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * API Live URL Prefix. |
||
| 33 | * |
||
| 34 | * @var string|null |
||
| 35 | */ |
||
| 36 | public $api_live_url_prefix; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Merchant Account. |
||
| 40 | * |
||
| 41 | * @var string|null |
||
| 42 | */ |
||
| 43 | public $merchant_account; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Origin key. |
||
| 47 | * |
||
| 48 | * @var string|null |
||
| 49 | */ |
||
| 50 | public $origin_key; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get API key. |
||
| 54 | * |
||
| 55 | * @return string|null |
||
| 56 | */ |
||
| 57 | 11 | public function get_api_key() { |
|
| 58 | 11 | return $this->api_key; |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get merchant account. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 1 | public function get_merchant_account() { |
|
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get API URL. |
||
| 72 | * |
||
| 73 | * @param string $method API method. |
||
| 74 | * @return string |
||
| 75 | * @throws \Exception Throws exception when mode is live and API live URL prefix is empty. |
||
| 76 | */ |
||
| 77 | 12 | public function get_api_url( $method ) { |
|
| 87 | } |
||
| 88 | } |
||
| 89 |