Failed Conditions
Pull Request — master (#92)
by
unknown
03:25
created

Account   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 57.14%

Importance

Changes 0
Metric Value
eloc 10
c 0
b 0
f 0
dl 0
loc 63
ccs 8
cts 14
cp 0.5714
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getServicer() 0 3 1
A getCurrency() 0 3 1
A getOwner() 0 3 1
A setServicer() 0 3 1
A setOwner() 0 3 1
A setCurrency() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
abstract class Account
8
{
9
    /**
10
     * @var \Genkgo\Camt\DTO\AccountOwner|null
11
     */
12
    private $owner;
13
    /**
14
     * @var \Genkgo\Camt\DTO\AccountServicer|null
15
     */
16
    private $servicer;
17
    /**
18
     * @var \Money\Currency|null
19
     */
20
    private $currency;
21
22
    abstract public function getIdentification(): string;
23
24
    /**
25
     * @return \Genkgo\Camt\DTO\AccountOwner|null
26
     */
27
    public function getOwner(): ?\Genkgo\Camt\DTO\AccountOwner
28
    {
29
        return $this->owner;
30
    }
31
32
    /**
33
     * @param \Genkgo\Camt\DTO\AccountOwner|null $owner
34
     */
35 18
    public function setOwner(\Genkgo\Camt\DTO\AccountOwner $owner): void
36
    {
37 18
        $this->owner = $owner;
38 18
    }
39
40
    /**
41
     * @return \Genkgo\Camt\DTO\AccountServicer|null
42
     */
43
    public function getServicer(): ?\Genkgo\Camt\DTO\AccountServicer
44
    {
45
        return $this->servicer;
46
    }
47
48
    /**
49
     * @param \Genkgo\Camt\DTO\AccountServicer|null $servicer
50
     */
51 18
    public function setServicer(\Genkgo\Camt\DTO\AccountServicer $servicer): void
52
    {
53 18
        $this->servicer = $servicer;
54 18
    }
55
56
    /**
57
     * @return \Money\Currency|null
58
     */
59
    public function getCurrency(): ?\Money\Currency
60
    {
61
        return $this->currency;
62
    }
63
64
    /**
65
     * @param \Money\Currency $currency
66
     */
67 10
    public function setCurrency(\Money\Currency $currency): void
68
    {
69 10
        $this->currency = $currency;
70 10
    }
71
}
72