Completed
Push — master ( 02ca86...1a815b )
by Frederik
02:38
created

RelatedAgent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10

2 Methods

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