Code Duplication    Length = 7-7 lines in 2 locations

src/Mapping/DenormalizationFieldMappingBuilder.php 2 locations

@@ 67-73 (lines=7) @@
64
     *
65
     * @return DenormalizationFieldMappingBuilderInterface
66
     */
67
    public static function createEmbedMany(string $name, string $class): DenormalizationFieldMappingBuilderInterface
68
    {
69
        $self = new self($name);
70
        $self->fieldDenormalizer = new EmbedManyFieldDenormalizer($class, new PropertyAccessor($name));
71
72
        return $self;
73
    }
74
75
    /**
76
     * @param string $name
@@ 81-87 (lines=7) @@
78
     *
79
     * @return DenormalizationFieldMappingBuilderInterface
80
     */
81
    public static function createEmbedOne(string $name, string $class): DenormalizationFieldMappingBuilderInterface
82
    {
83
        $self = new self($name);
84
        $self->fieldDenormalizer = new EmbedOneFieldDenormalizer($class, new PropertyAccessor($name));
85
86
        return $self;
87
    }
88
89
    /**
90
     * @param string   $name