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

BoardCreatedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 7
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\Profile\Profile;
8
use Aggrego\Domain\Shared\Event\Model\Events\Event;
9
use Aggrego\Domain\Shared\ValueObject\Key;
10
use Aggrego\Domain\Shared\ValueObject\Uuid;
11
12
class BoardCreatedEvent extends Event
13
{
14
    public function __construct(Uuid $uuid, Key $key, Profile $profile)
15
    {
16
        parent::__construct(
17
            [
18
                'uuid' => $uuid->getValue(),
19
                'key' => $key->getValue(),
20
                'profile' => $profile->__toString()
21
            ]
22
        );
23
    }
24
}
25