Status::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 1
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
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