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

AccountOwner::setAddress()   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 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class AccountOwner
8
{
9
    /**
10
     * @var string
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $name;
18
19
    /**
20
     * @var null|\Genkgo\Camt\DTO\Address
21
     */
22
    private $address;
23
24
    public function getId(): ?string
25
    {
26
        return $this->id;
27
    }
28
29 6
    public function setId(string $id): void
30
    {
31 6
        $this->id = $id;
32 6
    }
33
34
    public function getName(): ?string
35
    {
36
        return $this->name;
37
    }
38
39 18
    public function setName(string $name): void
40
    {
41 18
        $this->name = $name;
42 18
    }
43
44
    /**
45
     * @return null|\Genkgo\Camt\DTO\Address
46
     */
47
    public function getAddress(): ?Address
48
    {
49
        return $this->address;
50
    }
51
52
    /**
53
     * @param \Genkgo\Camt\DTO\Address $address
54
     */
55
    public function setAddress(Address $address): void
56
    {
57
        $this->address = $address;
58
    }
59
}
60