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

Account::setCurrency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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