Passed
Push — master ( 1e8995...e0bd2f )
by Tomasz
02:02
created

FinalBoardTransformedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Aggrego\Domain\Model\ProgressiveBoard\Events;
6
7
use Aggrego\Domain\Model\ProgressiveBoard\Step\Steps\FinalStep;
8
use Aggrego\Domain\Shared\Event\Model\Events\Event;
9
10
class FinalBoardTransformedEvent extends Event
11
{
12
    public function __construct(FinalStep $step)
13
    {
14
        parent::__construct(
15
            [
16
                'state' => $step->getState()->getValue(),
17
                'data' => $step->getData()->getValue()
18
            ]
19
        );
20
    }
21
}
22