RelatedParty::getAccount()   A
last analyzed

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 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