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

MadeInvisible::deserialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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