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

RelatedAgent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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
}