Failed Conditions
Push — develop ( 06cf49...d16b7e )
by Reüel
05:54
created

Config::set_private_key_password()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * Config.
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2020 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3;
12
13
use Pronamic\WordPress\Pay\Core\GatewayConfig;
14
15
/**
16
 * Title: iDEAL Advanced config
17
 * Description:
18
 * Copyright: 2005-2020 Pronamic
19
 * Company: Pronamic
20
 *
21
 * @author  Remco Tolsma
22
 * @version 2.0.0
23
 * @since   1.0.0
24
 */
25
class Config extends GatewayConfig {
26
	/**
27
	 * Merchant ID.
28
	 *
29
	 * @var string|null
30
	 */
31
	public $merchant_id;
32
33
	/**
34
	 * Sub ID.
35
	 *
36
	 * @var int|string|null
37
	 */
38
	public $sub_id = 0;
39
40
	/**
41
	 * Payment server URL.
42
	 *
43
	 * @var string|null
44
	 */
45
	public $payment_server_url;
46
47
	/**
48
	 * Private key password.
49
	 *
50
	 * @var string|null
51
	 */
52
	public $private_key_password;
53
54
	/**
55
	 * Private key.
56
	 *
57
	 * @var string|null
58
	 */
59
	public $private_key;
60
61
	/**
62
	 * Private certificate.
63
	 *
64
	 * @var string|null
65
	 */
66
	public $private_certificate;
67
68
	/**
69
	 * Purchase ID.
70
	 *
71
	 * @var string|null
72
	 */
73
	public $purchase_id;
74
75
	/**
76
	 * Get merchant ID.
77
	 *
78
	 * @return string|null
79
	 */
80
	public function get_merchant_id() {
81
		return $this->merchant_id;
82
	}
83
84
	/**
85
	 * Set merchant ID.
86
	 *
87
	 * @param string|null $merchant_id Merchant ID.
88
	 * @return void
89
	 */
90
	public function set_merchant_id( $merchant_id ) {
91
		$this->merchant_id = $merchant_id;
92
	}
93
94
	/**
95
	 * Get sub ID.
96
	 *
97
	 * @return int|string|null
98
	 */
99
	public function get_sub_id() {
100
		return $this->sub_id;
101
	}
102
103
	/**
104
	 * Set sub ID.
105
	 *
106
	 * @param int|string|null $sub_id Sub ID.
107
	 * @return void
108
	 */
109
	public function set_sub_id( $sub_id ) {
110
		$this->sub_id = $sub_id;
111
	}
112
113
	/**
114
	 * Get payment server URL.
115
	 *
116
	 * @return string|null
117
	 */
118
	public function get_payment_server_url() {
119
		return $this->payment_server_url;
120
	}
121
122
	/**
123
	 * Set payment server URL.
124
	 *
125
	 * @param string|null $payment_server_url Payment server URL.
126
	 * @return void
127
	 */
128
	public function set_payment_server_url( $payment_server_url ) {
129
		$this->payment_server_url = $payment_server_url;
130
	}
131
132
	/**
133
	 * Get private key password.
134
	 *
135
	 * @return string|null
136
	 */
137
	public function get_private_key_password() {
138
		return $this->private_key_password;
139
	}
140
141
	/**
142
	 * Set private key password.
143
	 *
144
	 * @param string|null $private_key_password Private key password.
145
	 * @return void
146
	 */
147
	public function set_private_key_password( $private_key_password ) {
148
		$this->private_key_password = $private_key_password;
149
	}
150
151
	/**
152
	 * Get private key.
153
	 *
154
	 * @return string|null
155
	 */
156
	public function get_private_key() {
157
		return $this->private_key;
158
	}
159
160
	/**
161
	 * Set private key.
162
	 *
163
	 * @param string|null $private_key Private key.
164
	 * @return void
165
	 */
166
	public function set_private_key( $private_key ) {
167
		$this->private_key = $private_key;
168
	}
169
170
	/**
171
	 * Get private certificate.
172
	 *
173
	 * @return string|null
174
	 */
175
	public function get_private_certificate() {
176
		return $this->private_certificate;
177
	}
178
179
	/**
180
	 * Set private certificate.
181
	 *
182
	 * @param string|null $private_certificate Private certificate.
183
	 * @return void
184
	 */
185
	public function set_private_certificate( $private_certificate ) {
186
		$this->private_certificate = $private_certificate;
187
	}
188
189
	/**
190
	 * Get purchase ID.
191
	 *
192
	 * @return string|null
193
	 */
194
	public function get_purchase_id() {
195
		return $this->purchase_id;
196
	}
197
198
	/**
199
	 * Set purchase ID.
200
	 *
201
	 * @param string|null $purchase_id Purchase ID.
202
	 * @return void
203
	 */
204
	public function set_purchase_id( $purchase_id ) {
205
		$this->purchase_id = $purchase_id;
206
	}
207
}
208