Code Duplication    Length = 18-20 lines in 2 locations

src/Internal/Data/Property.php 1 location

@@ 116-135 (lines=20) @@
113
     * @param int $modifiers
114
     * @param bool $virtual
115
     */
116
    public function __construct(
117
        string $realName,
118
        string $serializedName,
119
        PhpType $type,
120
        GetterStrategy $getterStrategy,
121
        SetterStrategy $setterStrategy,
122
        AnnotationSet $annotations,
123
        int $modifiers,
124
        bool $virtual
125
    )
126
    {
127
        $this->realName = $realName;
128
        $this->serializedName = $serializedName;
129
        $this->type = $type;
130
        $this->getterStrategy = $getterStrategy;
131
        $this->setterStrategy = $setterStrategy;
132
        $this->annotations = $annotations;
133
        $this->modifiers = $modifiers;
134
        $this->virtual = $virtual;
135
    }
136
137
    /**
138
     * Get the real name of the property

src/PropertyMetadata.php 1 location

@@ 80-97 (lines=18) @@
77
     * @param AnnotationSet $annotations
78
     * @param bool $virtual
79
     */
80
    public function __construct(
81
        string $name,
82
        string $serializedName,
83
        PhpType $type,
84
        string $modifiers,
85
        ClassMetadata $classMetadata,
86
        AnnotationSet $annotations,
87
        bool $virtual
88
    )
89
    {
90
        $this->name = $name;
91
        $this->serializedName = $serializedName;
92
        $this->type = $type;
93
        $this->modifiers = $modifiers;
94
        $this->classMetadata = $classMetadata;
95
        $this->annotations = $annotations;
96
        $this->virtual = $virtual;
97
    }
98
99
    /**
100
     * Get the property name