Message   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 38
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A get_name() 0 2 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\MultiSafepay\XML;
4
5
/**
6
 * Title: MultiSafepay Connect XML message
7
 * Description:
8
 * Copyright: 2005-2021 Pronamic
9
 * Company: Pronamic
10
 *
11
 * @author  Remco Tolsma
12
 * @version 2.0.2
13
 * @since   1.0.0
14
 */
15
class Message {
16
	/**
17
	 * The XML version of the iDEAL messages
18
	 *
19
	 * @var string
20
	 */
21
	const XML_VERSION = '1.0';
22
23
	/**
24
	 * The XML encoding of the iDEAL messages
25
	 *
26
	 * @var string
27
	 */
28
	const XML_ENCODING = 'UTF-8';
29
30
	/**
31
	 * The name of this message
32
	 *
33
	 * @var string
34
	 */
35
	private $name;
36
37
	/**
38
	 * Constructs and initialize an message
39
	 *
40
	 * @param string $name Name.
41
	 */
42 3
	public function __construct( $name ) {
43 3
		$this->name = $name;
44 3
	}
45
46
	/**
47
	 * Get the name of this message
48
	 *
49
	 * @return string
50
	 */
51 3
	public function get_name() {
52 3
		return $this->name;
53
	}
54
}
55