Item   A
last analyzed

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
 *
4
 * This file is part of the Aggrego.
5
 * (c) Tomasz Kunicki <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 */
11
12
declare(strict_types = 1);
13
14
namespace Aggrego\FragmentedDataBoardDomain\Board\Prototype\Shard;
15
16
use Aggrego\Domain\Board\Key;
17
use Aggrego\Domain\Profile\Profile;
18
19
class Item
20
{
21
    /** @var Profile */
22
    private $profile;
23
24
    /** @var Key */
25
    private $key;
26
27
    public function __construct(Profile $profile, Key $key)
28
    {
29
        $this->profile = $profile;
30
        $this->key = $key;
31
    }
32
33
    public function getProfile(): Profile
34
    {
35
        return $this->profile;
36
    }
37
38
    public function getKey(): Key
39
    {
40
        return $this->key;
41
    }
42
}
43