Code Duplication    Length = 13-15 lines in 2 locations

src/Metadata/ClassMetadata.php 1 location

@@ 28-40 (lines=13) @@
25
        ));
26
    }
27
28
    public function unserialize($str)
29
    {
30
        list(
31
            $this->name,
32
            $this->methodMetadata,
33
            $this->propertyMetadata,
34
            $this->fileResources,
35
            $this->createdAt,
36
            $this->annotations
37
        ) = unserialize($str);
38
39
        $this->reflection = new \ReflectionClass($this->name);
40
    }
41
}
42

src/Webservice/Metadata/TransferMetadata.php 1 location

@@ 79-93 (lines=15) @@
76
        ));
77
    }
78
79
    public function unserialize($str)
80
    {
81
        list(
82
            $this->name,
83
            $this->methodMetadata,
84
            $this->propertyMetadata,
85
            $this->fileResources,
86
            $this->createdAt,
87
            $this->annotations,
88
            $this->id,
89
            $this->associations
90
        ) = unserialize($str);
91
92
        $this->reflection = new ReflectionClass($this->name);
93
    }
94
}
95