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

Debtor   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Test Coverage

Coverage 52.63%

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 69
ccs 10
cts 19
cp 0.5263
rs 10
wmc 8

8 Methods

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