Failed Conditions
Pull Request — master (#92)
by
unknown
08:11
created

RelatedParty::getRelatedPartyType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
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
    /**
10
     * @var RelatedPartyTypeInterface
11
     */
12
    private $relatedPartyDetails;
13
14
    /**
15
     * @var null|Account
16
     */
17
    private $account;
18
19
    public function __construct(RelatedPartyTypeInterface $relatedPartyDetails, ?Account $account)
20
    {
21
        $this->relatedPartyDetails = $relatedPartyDetails;
22
        $this->account = $account;
23
    }
24
25
    public function getRelatedPartyType(): RelatedPartyTypeInterface
26
    {
27
        return $this->relatedPartyDetails;
28
    }
29
30
    public function getAccount(): ?Account
31
    {
32
        return $this->account;
33
    }
34
}
35