Code Duplication    Length = 9-10 lines in 2 locations

src/Isolate/LazyObjects/Object/PropertyAccessor.php 2 locations

@@ 24-32 (lines=9) @@
21
     * 
22
     * @api
23
     */
24
    public function set($object, $propertyName, $value)
25
    {
26
        $this->validateObject($object);
27
        $reflection = new \ReflectionClass($object);
28
        $this->validateProperty($reflection, $object, $propertyName);
29
        $property = $reflection->getProperty($propertyName);
30
        $property->setAccessible(true);
31
        $property->setValue($object, $value);
32
    }
33
34
    /**
35
     * @param $object
@@ 43-52 (lines=10) @@
40
     * 
41
     * @api
42
     */
43
    public function get($object, $propertyName)
44
    {
45
        $this->validateObject($object);
46
        $reflection = new \ReflectionClass($object);
47
        $this->validateProperty($reflection, $object, $propertyName);
48
        $property = $reflection->getProperty($propertyName);
49
        $property->setAccessible(true);
50
51
        return $property->getValue($object);
52
    }
53
54
    /**
55
     * @param $value