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

InitialItem::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Aggrego\Domain\Model\ProgressiveBoard\Shard;
4
5
use Aggrego\Domain\Profile\Profile;
6
use Aggrego\Domain\Shared\ValueObject\Key;
7
use Aggrego\Domain\Shared\ValueObject\Uuid;
8
9
class InitialItem extends Item
10
{
11
    /** @var Key */
12
    private $key;
13
14
    public function __construct(Uuid $uuid, Profile $profile, Key $key)
15
    {
16
        parent::__construct($uuid, $profile);
17
        $this->key = $key;
18
    }
19
20
    public function getKey(): Key
21
    {
22
        return $this->key;
23
    }
24
}
25