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

AccountOwner   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setAddress() 0 3 1
A getId() 0 3 1
A setName() 0 3 1
A setId() 0 3 1
A getName() 0 3 1
A getAddress() 0 3 1
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