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

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