Completed
Push — master ( 804716...5e83b7 )
by Tomasz
03:36
created

Item   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getProfile() 0 3 1
A __construct() 0 4 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
10
class Item
11
{
12
    /** @var Profile */
13
    private $profile;
14
15
    /** @var Key */
16
    private $key;
17
18
    public function __construct(Profile $profile, Key $key)
19
    {
20
        $this->profile = $profile;
21
        $this->key = $key;
22
    }
23
24
    public function getProfile(): Profile
25
    {
26
        return $this->profile;
27
    }
28
29
    public function getKey(): Key
30
    {
31
        return $this->key;
32
    }
33
}
34