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

Creditor::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
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class Creditor implements RelatedPartyTypeInterface
8
{
9
    /**
10
     * @var null|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 null|string
26
     */
27
    private $typeName;
28
29 23
    public function __construct(string $name)
30
    {
31 23
        $this->name = $name;
32 23
    }
33
34 23
    public function setAddress(Address $address): void
35
    {
36 23
        $this->address = $address;
37 23
    }
38
39 3
    public function getAddress(): ?Address
40
    {
41 3
        return $this->address;
42
    }
43
44 3
    public function getName(): ?string
45
    {
46 3
        return $this->name;
47
    }
48
49
    public function getId(): ?string
50
    {
51
        return $this->id;
52
    }
53
54
    public function setId(string $id): void
55
    {
56
        $this->id = $id;
57
    }
58
59
    public function getTypeName(): ?string
60
    {
61
        return $this->typeName;
62
    }
63
64
    public function setTypeName(?string $typeName): void
65
    {
66
        $this->typeName = $typeName;
67
    }
68
}
69