Passed
Push — master ( 2ee0d1...1e8995 )
by Tomasz
03:21
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 getUuid() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\Model\ProgressiveBoard\Shard;
6
7
use Aggrego\Domain\Profile\Profile;
8
use Aggrego\Domain\Shared\ValueObject\Uuid;
9
10
abstract class Item
11
{
12
    /** @var Uuid */
13
    private $uuid;
14
15
    /** @var Profile */
16
    private $profile;
17
18
    public function __construct(Uuid $uuid, Profile $profile)
19
    {
20
        $this->uuid = $uuid;
21
        $this->profile = $profile;
22
    }
23
24
    public function getUuid(): Uuid
25
    {
26
        return $this->uuid;
27
    }
28
29
    public function getProfile(): Profile
30
    {
31
        return $this->profile;
32
    }
33
}
34