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

RelatedParty   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 26
ccs 0
cts 8
cp 0
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
    /**
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