Code Duplication    Length = 12-12 lines in 2 locations

Adaptors/Symfony/SymfonyPropertyMapper.php 2 locations

@@ 31-42 (lines=12) @@
28
    }
29
30
    /** {@inheritdoc} */
31
    public function getObjectProperty($className, $apiProperty)
32
    {
33
        if (!$this->factory->hasMetadataFor($className)) {
34
            return null;
35
        }
36
37
        if (!in_array($apiProperty, $this->getApiProperties($className), true)) {
38
            return null;
39
        }
40
41
        return $this->strategy->denormalize($apiProperty);
42
    }
43
44
    /** {@inheritdoc} */
45
    public function getApiProperty($className, $objectProperty)
@@ 45-56 (lines=12) @@
42
    }
43
44
    /** {@inheritdoc} */
45
    public function getApiProperty($className, $objectProperty)
46
    {
47
        if (!$this->factory->hasMetadataFor($className)) {
48
            return null;
49
        }
50
51
        if (!in_array($objectProperty, $this->getObjectProperties($className), true)) {
52
            return null;
53
        }
54
55
        return $this->strategy->normalize($objectProperty);
56
    }
57
58
    /** {@inheritdoc} */
59
    public function getApiProperties($className)