Status   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 52
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
A __toString() 0 2 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\TargetPay;
4
5
/**
6
 * Title: TargetPay status
7
 * Description:
8
 * Copyright: 2005-2021 Pronamic
9
 * Company: Pronamic
10
 *
11
 * @author  Remco Tolsma
12
 * @version 2.0.0
13
 * @since   1.0.0
14
 */
15
class Status {
16
	/**
17
	 * Code
18
	 *
19
	 * @var string
20
	 */
21
	public $code;
22
23
	/**
24
	 * Description
25
	 *
26
	 * @var string
27
	 */
28
	public $description;
29
30
	/**
31
	 * Account number
32
	 *
33
	 * @var string
34
	 */
35
	public $account_number;
36
37
	/**
38
	 * Account name
39
	 *
40
	 * @var string
41
	 */
42
	public $account_name;
43
44
	/**
45
	 * Account city
46
	 *
47
	 * @var string
48
	 */
49
	public $account_city;
50
51
	/**
52
	 * Constructs and initializes an TargetPay status object
53
	 */
54 3
	public function __construct() {
55
56 3
	}
57
58
	// @todo getters and setters
59
60
	/**
61
	 * Create an string representation of this TargetPay error object
62
	 *
63
	 * @return string
64
	 */
65
	public function __toString() {
66
		return $this->code . ' ' . $this->description;
67
	}
68
}
69