Code Duplication    Length = 12-12 lines in 2 locations

src/Mapping/NormalizationFieldMappingBuilder.php 2 locations

@@ 93-104 (lines=12) @@
90
     *
91
     * @return NormalizationFieldMappingBuilderInterface
92
     */
93
    public static function createReferenceMany(
94
        string $name,
95
        string $idName = 'id'
96
    ): NormalizationFieldMappingBuilderInterface {
97
        $self = new self($name);
98
        $self->fieldNormalizer = new ReferenceManyFieldNormalizer(
99
            new PropertyAccessor($idName),
100
            new PropertyAccessor($name)
101
        );
102
103
        return $self;
104
    }
105
106
    /**
107
     * @param string $name
@@ 112-123 (lines=12) @@
109
     *
110
     * @return NormalizationFieldMappingBuilderInterface
111
     */
112
    public static function createReferenceOne(
113
        string $name,
114
        string $idName = 'id'
115
    ): NormalizationFieldMappingBuilderInterface {
116
        $self = new self($name);
117
        $self->fieldNormalizer = new ReferenceOneFieldNormalizer(
118
            new PropertyAccessor($idName),
119
            new PropertyAccessor($name)
120
        );
121
122
        return $self;
123
    }
124
125
    /**
126
     * @param array $groups