Code Duplication    Length = 12-12 lines in 2 locations

src/Mapping/NormalizationFieldMappingBuilder.php 2 locations

@@ 119-130 (lines=12) @@
116
     *
117
     * @return NormalizationFieldMappingBuilderInterface
118
     */
119
    public static function createReferenceMany(
120
        string $name,
121
        string $idName = 'id'
122
    ): NormalizationFieldMappingBuilderInterface {
123
        $self = new self($name);
124
        $self->fieldNormalizer = new ReferenceManyFieldNormalizer(
125
            new PropertyAccessor($idName),
126
            new PropertyAccessor($name)
127
        );
128
129
        return $self;
130
    }
131
132
    /**
133
     * @param string $name
@@ 138-149 (lines=12) @@
135
     *
136
     * @return NormalizationFieldMappingBuilderInterface
137
     */
138
    public static function createReferenceOne(
139
        string $name,
140
        string $idName = 'id'
141
    ): NormalizationFieldMappingBuilderInterface {
142
        $self = new self($name);
143
        $self->fieldNormalizer = new ReferenceOneFieldNormalizer(
144
            new PropertyAccessor($idName),
145
            new PropertyAccessor($name)
146
        );
147
148
        return $self;
149
    }
150
151
    /**
152
     * @deprecated