Failed Conditions
Pull Request — master (#92)
by
unknown
02:39
created

Account::getServicer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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