Passed
Push — master ( 2ee0d1...1e8995 )
by Tomasz
03:21
created

Item::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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