Completed
Push — master ( a0580c...57df1c )
by Tomasz
01:44
created

FinalItem   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 getData() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\ProgressiveBoard\Shard;
6
7
use Aggrego\Domain\Profile\Profile;
8
use Aggrego\Domain\Shared\ValueObject\Data;
9
use Aggrego\Domain\Shared\ValueObject\Uuid;
10
11
class FinalItem extends Item
12
{
13
    /** @var Data */
14
    private $data;
15
16
    public function __construct(Uuid $uuid, Profile $profile, Data $data)
17
    {
18
        parent::__construct($uuid, $profile);
19
        $this->data = $data;
20
    }
21
22
    public function getData(): Data
23
    {
24
        return $this->data;
25
    }
26
}
27