Code Duplication    Length = 7-7 lines in 2 locations

src/Mapping/DenormalizationFieldMappingBuilder.php 2 locations

@@ 130-136 (lines=7) @@
127
     *
128
     * @return DenormalizationFieldMappingBuilderInterface
129
     */
130
    public static function createEmbedMany(string $name, string $class): DenormalizationFieldMappingBuilderInterface
131
    {
132
        $self = new self($name);
133
        $self->fieldDenormalizer = new EmbedManyFieldDenormalizer($class, new PropertyAccessor($name));
134
135
        return $self;
136
    }
137
138
    /**
139
     * @param string $name
@@ 144-150 (lines=7) @@
141
     *
142
     * @return DenormalizationFieldMappingBuilderInterface
143
     */
144
    public static function createEmbedOne(string $name, string $class): DenormalizationFieldMappingBuilderInterface
145
    {
146
        $self = new self($name);
147
        $self->fieldDenormalizer = new EmbedOneFieldDenormalizer($class, new PropertyAccessor($name));
148
149
        return $self;
150
    }
151
152
    /**
153
     * @param string   $name