Adapter/AdapterUtil.php
public static function getPropertyValue($object, $property)
    {
        $ref = new \ReflectionClass($object);
        $prop = static::getPrivateProperty($ref, $property);
        $prop->setAccessible(true);
        $value = $prop->getValue($object);
        $prop->setAccessible(false);

        return $value;
    }
public static function getPropertyValue($object, $property)
    {
        $ref = new \ReflectionClass($object);
        $prop = static::getPrivateProperty($ref, $property);
        $prop->setAccessible(true);
        $value = $prop->getValue($object);
        $prop->setAccessible(false);

        return $value;
    }
public static function getPropertyValue ( $ object , $ property ) { $ ref = new \ ReflectionClass ( $ object ) ; $ prop = static :: getPrivateProperty ( $ ref , $ property ) ; $ prop -> setAccessible ( true ) ; $ value = $ prop -> getValue ( $ object ) ; $ prop -> setAccessible ( false ) ; return $ value ; }
Get the value of private property.

@param object $object   The object
@param string $property The property name

@return mixed
Get the value of private property .