ChargesRecord   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 30%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 36
ccs 3
cts 10
cp 0.3
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setIdentification() 0 3 1
A setAmount() 0 3 1
A getChargesIncludedIndicator() 0 3 1
A getAmount() 0 3 1
A getIdentification() 0 3 1
A setChargesIncludedIndicator() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
use Money\Money;
8
9
class ChargesRecord
10
{
11
    private Money $amount;
12
13
    private bool $chargesIncludedIndicator = false;
14
15
    private string $identification;
16
17
    public function getAmount(): Money
18
    {
19
        return $this->amount;
20
    }
21
22
    public function setAmount(Money $money): void
23
    {
24
        $this->amount = $money;
25
    }
26
27
    public function getChargesIncludedIndicator(): bool
28
    {
29
        return $this->chargesIncludedIndicator;
30
    }
31 4
32
    public function setChargesIncludedIndicator(bool $chargesIncludedIndicator): void
33 4
    {
34 4
        $this->chargesIncludedIndicator = $chargesIncludedIndicator;
35
    }
36
37
    public function getIdentification(): string
38
    {
39
        return $this->identification;
40
    }
41
42
    public function setIdentification(string $identification): void
43
    {
44
        $this->identification = $identification;
45
    }
46
}
47