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

BoardTransformedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\ProgressiveBoard\Events;
6
7
use Aggrego\Domain\ProgressiveBoard\Step\Step;
8
use Aggrego\Domain\Shared\Event\Model\Events\Event;
9
use Aggrego\Domain\Shared\ValueObject\Uuid;
10
11
class BoardTransformedEvent extends Event
12
{
13
    public function __construct(Uuid $uuid, Step $step)
14
    {
15
        parent::__construct(
16
            [
17
                'uuid' => $uuid->getValue(),
18
                'state' => $step->getState()->getValue(),
19
            ]
20
        );
21
    }
22
}
23