Completed
Push — master ( a5ff2b...bf9940 )
by Yann
05:35
created

ChargesRecord   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 66
ccs 6
cts 15
cp 0.4
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getAmount() 0 4 1
A setAmount() 0 4 1
A getChargesIncluded­Indicator() 0 4 1
A setChargesIncluded­Indicator() 0 4 1
A getIdentification() 0 4 1
A setIdentification() 0 4 1
1
<?php
2
namespace Genkgo\Camt\DTO;
3
4
use Money\Money;
5
6
class ChargesRecord
7
{
8
  
9
    /** @var Money */
10
    private $amount;
11
12
    /**
13
     * @var bool
14
     */
15
    private $chargesIncluded­Indicator = false;
16
    
17
    /**
18
     * @var string
19
     */
20
    private $identification;
21
22
23
    /**
24
     * @return Money
25
     */
26
    public function getAmount()
27
    {
28
        return $this->amount;  
29
    }
30
31
    /**
32
     * @param Money $money
33
     */
34 4
    public function setAmount(Money $money)
35
    {
36 4
        $this->amount = $money;
37 4
    }
38
    
39
    /**
40
     * @return ChargesIncluded­Indicator
41
     */
42
    public function getChargesIncluded­Indicator()
43
    {
44
        return $this->chargesIncluded­Indicator;
45
    }
46
47
    /**
48
     * @param $chargesIncluded­Indicator
49
     */
50
    public function setChargesIncluded­Indicator($chargesIncluded­Indicator)
51
    {
52
        $this->chargesIncluded­Indicator = $chargesIncluded­Indicator;
53
    }
54
55
    /**
56
     * @return Identification
57
     */
58
    public function getIdentification()
59
    {
60
        return $this->identification;
61
    }
62
63
    /**
64
     * @param $identification
65
     */
66 4
    public function setIdentification($identification)
67
    {
68 4
        $this->identification = $identification;
69 4
    }
70
    
71
}
72