RelatedParty   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRelatedPartyType() 0 3 1
A getAccount() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class RelatedParty
8
{
9
    private RelatedPartyTypeInterface $relatedPartyDetails;
10
11
    private ?Account $account;
12
13
    public function __construct(RelatedPartyTypeInterface $relatedPartyDetails, ?Account $account)
14
    {
15
        $this->relatedPartyDetails = $relatedPartyDetails;
16
        $this->account = $account;
17
    }
18
19 23
    public function getRelatedPartyType(): RelatedPartyTypeInterface
20
    {
21 23
        return $this->relatedPartyDetails;
22 23
    }
23 23
24
    public function getAccount(): ?Account
25 3
    {
26
        return $this->account;
27 3
    }
28
}
29