Message::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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