Completed
Push — feature/ra-locations ( cdde00 )
by A.
04:54
created

RaLocation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 41
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace Surfnet\Stepup\Identity\Entity;
4
5
use Surfnet\Stepup\Configuration\Value\ContactInformation;
6
use Surfnet\Stepup\Configuration\Value\Institution;
7
use Surfnet\Stepup\Configuration\Value\Location;
8
use Surfnet\Stepup\Configuration\Value\RaLocationId;
9
use Surfnet\Stepup\Configuration\Value\RaLocationName;
10
11
class RaLocation
12
{
13
    /**
14
     * @var RaLocationName
15
     */
16
    private $locationName;
17
18
    /**
19
     * @var RaLocationId
20
     */
21
    private $raLocationId;
22
23
    /**
24
     * @var ContactInformation
25
     */
26
    private $contactInformation;
27
28
    /**
29
     * @var Institution
30
     */
31
    private $institution;
32
33
    /**
34
     * @var Location
35
     */
36
    private $location;
37
38
    public function __construct(
39
        RaLocationId $raLocationId,
40
        Institution $institution,
41
        RaLocationName $locationName,
42
        Location $location,
43
        ContactInformation $contactInformation
44
    ) {
45
        $this->raLocationId       = $raLocationId;
46
        $this->institution        = $institution;
47
        $this->locationName       = $locationName;
48
        $this->location           = $location;
49
        $this->contactInformation = $contactInformation;
50
    }
51
}
52