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 __construct() 0 4 1
A getUuid() 0 3 1
A getProfile() 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\Shard;
15
16
use Aggrego\Domain\Profile\Profile;
17
18
abstract class Item
19
{
20
    /** @var Uuid */
21
    private $uuid;
22
23
    /** @var Profile */
24
    private $profile;
25
26
    public function __construct(Uuid $uuid, Profile $profile)
27
    {
28
        $this->uuid = $uuid;
29
        $this->profile = $profile;
30
    }
31
32
    public function getUuid(): Uuid
33
    {
34
        return $this->uuid;
35
    }
36
37
    public function getProfile(): Profile
38
    {
39
        return $this->profile;
40
    }
41
}
42