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

Creditor::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
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 string|null
11
     */
12
    private $id;
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var null|Address
20
     */
21
    private $address;
22
    /**
23
     * @var string|null
24
     */
25
    private $typeName;
26
27 23
    public function __construct(string $name)
28
    {
29 23
        $this->name = $name;
30 23
    }
31
32 23
    public function setAddress(Address $address): void
33
    {
34 23
        $this->address = $address;
35 23
    }
36
37 3
    public function getAddress(): ?Address
38
    {
39 3
        return $this->address;
40
    }
41
42 3
    public function getName(): ?string
43
    {
44 3
        return $this->name;
45
    }
46
47
    public function getId(): ?string
48
    {
49
        return $this->id;
50
    }
51
52
    public function setId(string $id): void
53
    {
54
        $this->id = $id;
55
    }
56
57
    /**
58
     * @return string|null
59
     */
60
    public function getTypeName(): ?string
61
    {
62
        return $this->typeName;
63
    }
64
65
    /**
66
     * @param string|null $typeName
67
     */
68
    public function setTypeName(?string $typeName): void
69
    {
70
        $this->typeName = $typeName;
71
    }
72
}
73