ShardUpdatedEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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\Events;
15
16
use Aggrego\AggregateEventConsumer\Shared\Event;
17
use Aggrego\AggregateEventConsumer\Uuid;
18
use Aggrego\FragmentedDataBoardDomain\Board\Shard\FinalItem;
19
20
class ShardUpdatedEvent extends Event
21
{
22
    public function __construct(Uuid $uuid, FinalItem $board)
23
    {
24
        parent::__construct(
25
            [
26
                'uuid' => $uuid->getValue(),
27
                'shard_uuid' => $board->getUuid()->getValue(),
28
                'profile' => $board->getProfile()->__toString(),
29
                'data' => $board->getData()->getValue()
30
            ]
31
        );
32
    }
33
}
34