Code Duplication    Length = 13-15 lines in 2 locations

src/Metadata/ClassMetadata.php 1 location

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

src/Webservice/Metadata/TransferMetadata.php 1 location

@@ 70-84 (lines=15) @@
67
        ));
68
    }
69
70
    public function unserialize($str)
71
    {
72
        list(
73
            $this->name,
74
            $this->methodMetadata,
75
            $this->propertyMetadata,
76
            $this->fileResources,
77
            $this->createdAt,
78
            $this->annotations,
79
            $this->id,
80
            $this->associations
81
        ) = unserialize($str);
82
83
        $this->reflection = new ReflectionClass($this->name);
84
    }
85
}
86