Failed Conditions
Push — develop ( 612159...14294b )
by Reüel
03:14
created

PaymentMethod::__construct()   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
nc 1
nop 1
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Payment method
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2019 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Gateways\OmniKassa2
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\Adyen;
12
13
use stdClass;
14
15
/**
16
 * Payment method
17
 *
18
 * @author  Remco Tolsma
19
 * @version 2.1.0
20
 * @since   2.0.2
21
 */
22
class PaymentMethod extends stdClass {
23
	/**
24
	 * Type.
25
	 *
26
	 * @var string
27
	 */
28
	public $type;
29
30
	/**
31
	 * Construct a payment method.
32
	 *
33
	 * @param string $type Adyen payment method type.
34
	 */
35
	public function __construct( $type ) {
36
		$this->type = $type;
37
	}
38
39
	/**
40
	 * Get JSON.
41
	 *
42
	 * @return object
43
	 */
44
	public function get_json() {
45
		return (object) $this;
46
	}
47
}
48