Code Duplication    Length = 7-7 lines in 3 locations

src/AbstractNetwork.php 1 location

@@ 58-64 (lines=7) @@
55
     *
56
     * @return mixed
57
     */
58
    public function invokeProperty(&$object,$propertyName)
59
    {
60
        $reflection = new \ReflectionClass(get_class($object));
61
        $property = $reflection->getProperty($propertyName);
62
        $property->setAccessible(true);
63
        return $property->getValue($object);
64
    }
65
66
}
67

src/NetAffiliationEx.php 1 location

@@ 37-43 (lines=7) @@
34
     *
35
     * @return mixed
36
     */
37
    public function invokeProperty(&$object,$propertyName)
38
    {
39
        $reflection = new \ReflectionClass(get_class($object));
40
        $property = $reflection->getProperty($propertyName);
41
        $property->setAccessible(true);
42
        return $property->getValue($object);
43
    }
44
45
    /**
46
     * @param $credentials

src/ZanoxEx.php 1 location

@@ 36-42 (lines=7) @@
33
     *
34
     * @return mixed
35
     */
36
    public function invokeProperty(&$object,$propertyName)
37
    {
38
        $reflection = new \ReflectionClass(get_class($object));
39
        $property = $reflection->getProperty($propertyName);
40
        $property->setAccessible(true);
41
        return $property->getValue($object);
42
    }
43
    /**
44
     * get Sales updated/created on the date passed
45
     * @param $date