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

PaymentMethod   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 24
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_json() 0 2 1
A __construct() 0 2 1
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