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

AccountOwner   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 63
ccs 6
cts 14
cp 0.4286
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setAddress() 0 3 1
A getId() 0 3 1
A getName() 0 3 1
A getAddress() 0 3 1
A setName() 0 3 1
A setId() 0 3 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
6
class AccountOwner
7
{
8
    /**
9
     * @var string
10
     */
11
    private $id;
12
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var \Genkgo\Camt\DTO\Address|null
20
     */
21
    private $address;
22
23
    /**
24
     * @return string|null
25
     */
26
    public function getId(): ?string
27
    {
28
        return $this->id;
29
    }
30
31
    /**
32
     * @param string $id
33
     */
34 6
    public function setId(string $id): void
35
    {
36 6
        $this->id = $id;
37 6
    }
38
39
    /**
40
     * @return string|null
41
     */
42
    public function getName(): ?string
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     */
50 18
    public function setName(string $name): void
51
    {
52 18
        $this->name = $name;
53 18
    }
54
55
    /**
56
     * @return \Genkgo\Camt\DTO\Address|null
57
     */
58
    public function getAddress(): ?\Genkgo\Camt\DTO\Address
59
    {
60
        return $this->address;
61
    }
62
63
    /**
64
     * @param \Genkgo\Camt\DTO\Address|null $address
65
     */
66
    public function setAddress(\Genkgo\Camt\DTO\Address $address): void
67
    {
68
        $this->address = $address;
69
    }
70
}