Passed
Pull Request — master (#141)
by
unknown
11:36
created

Creditor   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 32
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A setOrgId() 0 3 1
A getOrgId() 0 3 1
A getName() 0 3 1
A setAddress() 0 3 1
A getAddress() 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
    private ?Address $address = null;
10
    private ?string $orgId;
11
12
    public function __construct(private ?string $name)
13
    {
14
    }
15
16
    public function setAddress(Address $address): void
17
    {
18
        $this->address = $address;
19 23
    }
20
21 23
    public function getAddress(): ?Address
22 23
    {
23
        return $this->address;
24 23
    }
25
26 23
    public function getName(): ?string
27 23
    {
28
        return $this->name;
29 3
    }
30
31 3
    public function setOrgId(?string $orgId): void
32
    {
33
        $this->orgId = $orgId;
34 3
    }
35
36 3
    public function getOrgId(): ?string
37
    {
38
        return $this->orgId;
39
    }
40
}
41