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

Creditor   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Test Coverage

Coverage 52.63%

Importance

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

8 Methods

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