Completed
Push — master ( d252f0...d75c62 )
by Jonas
22s queued 11s
created

MadeInvisible   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A deserialize() 0 7 1
1
<?php
2
3
namespace CultuurNet\UDB3\Label\Events;
4
5
use CultuurNet\UDB3\Label\ValueObjects\LabelName;
6
use ValueObjects\Identity\UUID;
7
8
final class MadeInvisible extends AbstractEvent
9
{
10
    public static function deserialize(array $data): MadeInvisible
11
    {
12
        return new self(
13
            new UUID($data[self::UUID]),
14
            new LabelName($data[self::NAME])
15
        );
16
    }
17
}
18