Completed
Push — master ( aabf4d...606f02 )
by Frederik
9s
created

Reference::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Genkgo\Camt\Camt053\DTO;
4
5
/**
6
 * Class Reference
7
 * @package Genkgo\Camt\Camt053
8
 */
9
class Reference
10
{
11
    /**
12
     * @var string
13
     */
14
    private $endToEndId;
15
16
    /**
17
     * @var string
18
     */
19
    private $mandateId;
20
21
    /**
22
     * @param string $endToEndId
23
     * @param string $mandateId
24
     */
25 8
    public function __construct($endToEndId, $mandateId = null)
26
    {
27 8
        $this->endToEndId = $endToEndId;
28 8
        $this->mandateId = $mandateId;
29 8
    }
30
31
    /**
32
     * @return string|null
33
     */
34 1
    public function getMandateId()
35
    {
36 1
        return $this->mandateId;
37
    }
38
39
    /**
40
     * @return string|null
41
     */
42 2
    public function getEndToEndId()
43
    {
44 2
        return $this->endToEndId;
45
    }
46
}
47