Adapter/AdapterUtil.php
public static function getPrivateProperty(\ReflectionClass $reflectionClass, $property)
    {
        if (!$reflectionClass->hasProperty($property) && $reflectionClass->getParentClass()) {
            return static::getPrivateProperty($reflectionClass->getParentClass(), $property);
        }

        return $reflectionClass->getProperty($property);
    }
public static function getPrivateProperty(\ReflectionClass $reflectionClass, $property)
    {
        if (!$reflectionClass->hasProperty($property) && $reflectionClass->getParentClass()) {
            return static::getPrivateProperty($reflectionClass->getParentClass(), $property);
        }

        return $reflectionClass->getProperty($property);
    }
public static function getPrivateProperty ( \ ReflectionClass $ reflectionClass , $ property ) { if ( ! $ reflectionClass -> hasProperty ( $ property ) && $ reflectionClass -> getParentClass ( ) ) { return static :: getPrivateProperty ( $ reflectionClass -> getParentClass ( ) , $ property ) ; } return $ reflectionClass -> getProperty ( $ property ) ; }
Get the private property.

@param \ReflectionClass $reflectionClass The reflection class
@param string           $property        The property name

@return \ReflectionProperty
Get the private property .