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

InitialItem   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getKey() 0 3 1
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