Code Duplication    Length = 7-7 lines in 2 locations

src/Mapping/DenormalizationFieldMappingBuilder.php 2 locations

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