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

BoardTransformedEvent::__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 2
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\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