Passed
Pull Request — master (#141)
by Adrien
01:49
created

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