Code Duplication    Length = 7-7 lines in 2 locations

src/Mapping/DenormalizationFieldMappingBuilder.php 2 locations

@@ 97-103 (lines=7) @@
94
     *
95
     * @return DenormalizationFieldMappingBuilderInterface
96
     */
97
    public static function createEmbedMany(string $name, string $class): DenormalizationFieldMappingBuilderInterface
98
    {
99
        $self = new self($name);
100
        $self->fieldDenormalizer = new EmbedManyFieldDenormalizer($class, new PropertyAccessor($name));
101
102
        return $self;
103
    }
104
105
    /**
106
     * @param string $name
@@ 111-117 (lines=7) @@
108
     *
109
     * @return DenormalizationFieldMappingBuilderInterface
110
     */
111
    public static function createEmbedOne(string $name, string $class): DenormalizationFieldMappingBuilderInterface
112
    {
113
        $self = new self($name);
114
        $self->fieldDenormalizer = new EmbedOneFieldDenormalizer($class, new PropertyAccessor($name));
115
116
        return $self;
117
    }
118
119
    /**
120
     * @param string   $name