RelatedAgent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRelatedAgentType() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
class RelatedAgent
8
{
9
    private RelatedAgentTypeInterface $relatedAgentDetails;
10
11
    /**
12
     * RelatedAgent constructor.
13
     */
14
    public function __construct(RelatedAgentTypeInterface $relatedAgentDetails)
15
    {
16
        $this->relatedAgentDetails = $relatedAgentDetails;
17 17
    }
18
19 17
    public function getRelatedAgentType(): RelatedAgentTypeInterface
20 17
    {
21
        return $this->relatedAgentDetails;
22 1
    }
23
}
24