Completed
Pull Request — master (#14)
by Yann
02:46
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 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
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 $endToEndId
23
     * @param $mandateId
24
     */
25 7
    public function __construct($endToEndId, $mandateId = null)
26
    {
27 7
        $this->endToEndId = $endToEndId;
28 7
        $this->mandateId = $mandateId;
29 7
    }
30
31
    /**
32
     * @return string|null
33
     */
34 1
    public function getMandateId()
35
    {
36 1
        return $this->mandateId;
37
    }
38
39
    /**
40
     * @return string
41
     */
42 2
    public function getEndToEndId()
43
    {
44 2
        return $this->endToEndId;
45
    }
46
}
47