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

BoardCreatedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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