Failed Conditions
Push — develop ( a77845...b8121d )
by Reüel
04:13
created

Config   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 63
rs 10
ccs 8
cts 8
cp 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get_invoice_number() 0 2 1
A get_secret_key() 0 2 1
A get_website_key() 0 2 1
A get_excluded_services() 0 2 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Buckaroo;
4
5
use Pronamic\WordPress\Pay\Core\GatewayConfig;
6
7
/**
8
 * Title: Buckaroo config
9
 * Description:
10
 * Copyright: 2005-2019 Pronamic
11
 * Company: Pronamic
12
 *
13
 * @author Remco Tolsma
14
 * @version 2.0.0
15
 * @since 1.0.0
16
 */
17
class Config extends GatewayConfig {
18
	/**
19
	 * Website key.
20
	 *
21
	 * @var string|null
22
	 */
23
	public $website_key;
24
25
	/**
26
	 * Secret key.
27
	 *
28
	 * @var string|null
29
	 */
30
	public $secret_key;
31
32
	/**
33
	 * Excluded services.
34
	 *
35
	 * @var string|null
36
	 */
37
	public $excluded_services;
38
39
	/**
40
	 * Invoice number.
41
	 *
42
	 * @var string|null
43
	 */
44
	public $invoice_number;
45
46
	/**
47
	 * Get website key.
48
	 *
49
	 * @return string|null
50
	 */
51 1
	public function get_website_key() {
52 1
		return $this->website_key;
53
	}
54
55
	/**
56
	 * Get secret key.
57
	 *
58
	 * @return string|null
59
	 */
60 1
	public function get_secret_key() {
61 1
		return $this->secret_key;
62
	}
63
64
	/**
65
	 * Get excluded services.
66
	 *
67
	 * @return string|null
68
	 */
69 1
	public function get_excluded_services() {
70 1
		return $this->excluded_services;
71
	}
72
73
	/**
74
	 * Get invoice number.
75
	 *
76
	 * @return string|null
77
	 */
78 1
	public function get_invoice_number() {
79 1
		return $this->invoice_number;
80
	}
81
}
82