Code Duplication    Length = 9-10 lines in 2 locations

src/Label/Events/CopyCreated.php 1 location

@@ 50-59 (lines=10) @@
47
    /**
48
     * @inheritdoc
49
     */
50
    public static function deserialize(array $data)
51
    {
52
        return new static(
53
            new UUID($data[self::UUID]),
54
            new StringLiteral($data[self::NAME]),
55
            Visibility::fromNative($data[self::VISIBILITY]),
56
            Privacy::fromNative($data[self::PRIVACY]),
57
            new UUID($data[self::PARENT_UUID])
58
        );
59
    }
60
61
    /**
62
     * @inheritdoc

src/Label/Events/Created.php 1 location

@@ 63-71 (lines=9) @@
60
    /**
61
     * @inheritdoc
62
     */
63
    public static function deserialize(array $data)
64
    {
65
        return new static(
66
            new UUID($data[self::UUID]),
67
            new StringLiteral($data[self::NAME]),
68
            Visibility::fromNative($data[self::VISIBILITY]),
69
            Privacy::fromNative($data[self::PRIVACY])
70
        );
71
    }
72
73
    /**
74
     * @inheritdoc