Completed
Push — master ( a0580c...57df1c )
by Tomasz
01:44
created

Item   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getUuid() 0 3 1
A getProfile() 0 3 1
A __construct() 0 5 1
A getKey() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\Profile\BoardConstruction\InitialBoardModel\Shard;
6
7
use Aggrego\Domain\Profile\Profile;
8
use Aggrego\Domain\Shared\ValueObject\Key;
9
use Aggrego\Domain\Shared\ValueObject\Uuid;
10
11
class Item
12
{
13
    /** @var Uuid */
14
    private $uuid;
15
16
    /** @var Profile */
17
    private $profile;
18
19
    /** @var Key */
20
    private $key;
21
22
    public function __construct(Uuid $uuid, Profile $profile, Key $key)
23
    {
24
        $this->uuid = $uuid;
25
        $this->profile = $profile;
26
        $this->key = $key;
27
    }
28
29
    public function getUuid(): Uuid
30
    {
31
        return $this->uuid;
32
    }
33
34
    public function getProfile(): Profile
35
    {
36
        return $this->profile;
37
    }
38
39
    public function getKey(): Key
40
    {
41
        return $this->key;
42
    }
43
}
44