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

Debtor::getOrgId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
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 Debtor 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 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