FinalItem   A
last analyzed

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 getData() 0 3 1
A __construct() 0 4 1
1
<?php
2
/**
3
 *
4
 * This file is part of the Aggrego.
5
 * (c) Tomasz Kunicki <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 */
11
12
declare(strict_types = 1);
13
14
namespace Aggrego\FragmentedDataBoardDomain\Board\Shard;
15
16
use Aggrego\FragmentedDataBoardDomain\Board\Data;
17
use Aggrego\Domain\Profile\Profile;
18
19
class FinalItem extends Item
20
{
21
    /** @var Data */
22
    private $data;
23
24
    public function __construct(Uuid $uuid, Profile $profile, Data $data)
25
    {
26
        parent::__construct($uuid, $profile);
27
        $this->data = $data;
28
    }
29
30
    public function getData(): Data
31
    {
32
        return $this->data;
33
    }
34
}
35