Transaction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 113
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
A __toString() 0 2 1
1
<?php
2
/**
3
 * Transaction
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2022 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Payments
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\Sisow;
12
13
use Pronamic\WordPress\DateTime\DateTime;
14
15
/**
16
 * Title: iDEAL Sisow error
17
 * Description:
18
 * Copyright: 2005-2022 Pronamic
19
 * Company: Pronamic
20
 *
21
 * @author  Remco Tolsma
22
 * @version 2.0.4
23
 * @since   1.0.0
24
 */
25
class Transaction {
26
	/**
27
	 * Transaction ID
28
	 *
29
	 * @var string
30
	 */
31
	public $id;
32
33
	/**
34
	 * The status of the transaction
35
	 *
36
	 * @var string
37
	 */
38
	public $status;
39
40
	/**
41
	 * The amount of the transaction
42
	 *
43
	 * @var float
44
	 */
45
	public $amount;
46
47
	/**
48
	 * Purchase ID
49
	 *
50
	 * @var string
51
	 */
52
	public $purchase_id;
53
54
	/**
55
	 * Description
56
	 *
57
	 * @var string
58
	 */
59
	public $description;
60
61
	/**
62
	 * Entrance code
63
	 *
64
	 * @var string
65
	 */
66
	public $entrance_code;
67
68
	/**
69
	 * Issuer ID
70
	 *
71
	 * @var string
72
	 */
73
	public $issuer_id;
74
75
	/**
76
	 * Timestamp
77
	 *
78
	 * @var DateTime
79
	 */
80
	public $timestamp;
81
82
	/**
83
	 * Consumer name
84
	 *
85
	 * @var string
86
	 */
87
	public $consumer_name;
88
89
	/**
90
	 * Consumer account
91
	 *
92
	 * @var string
93
	 */
94
	public $consumer_account;
95
96
	/**
97
	 * Consumer city
98
	 *
99
	 * @var string
100
	 */
101
	public $consumer_city;
102
103
	/**
104
	 * Consumer IBAN
105
	 *
106
	 * @var string
107
	 */
108
	public $consumer_iban;
109
110
	/**
111
	 * Consumer BIC
112
	 *
113
	 * @var string
114
	 */
115
	public $consumer_bic;
116
117
	/**
118
	 * Issuer URL
119
	 *
120
	 * @var string
121
	 */
122
	public $issuer_url;
123
124
	/**
125
	 * Constructs and initializes an Sisow error object
126
	 */
127
	public function __construct() {
128
129
	}
130
131
	/**
132
	 * Create an string representation of this object
133
	 *
134
	 * @return string
135
	 */
136
	public function __toString() {
137
		return $this->id . ' ' . $this->issuer_url;
138
	}
139
}
140