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

Reference   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMandateId() 0 4 1
A getEndToEndId() 0 4 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