Code Duplication    Length = 7-7 lines in 2 locations

src/Mapping/DenormalizationFieldMappingBuilder.php 2 locations

@@ 118-124 (lines=7) @@
115
     *
116
     * @return DenormalizationFieldMappingBuilderInterface
117
     */
118
    public static function createEmbedMany(string $name, string $class): DenormalizationFieldMappingBuilderInterface
119
    {
120
        $self = new self($name);
121
        $self->fieldDenormalizer = new EmbedManyFieldDenormalizer($class, new PropertyAccessor($name));
122
123
        return $self;
124
    }
125
126
    /**
127
     * @param string $name
@@ 132-138 (lines=7) @@
129
     *
130
     * @return DenormalizationFieldMappingBuilderInterface
131
     */
132
    public static function createEmbedOne(string $name, string $class): DenormalizationFieldMappingBuilderInterface
133
    {
134
        $self = new self($name);
135
        $self->fieldDenormalizer = new EmbedOneFieldDenormalizer($class, new PropertyAccessor($name));
136
137
        return $self;
138
    }
139
140
    /**
141
     * @param string   $name