protected static function getProtectedValue($object, $property)
    {
        $refObject = new ReflectionObject($object);
        $refProperty = $refObject->getProperty($property);
        $refProperty->setAccessible(true);
        return $refProperty->getValue($object);
    }
protected static function getProtectedValue($object, $property)
    {
        $refObject = new ReflectionObject($object);
        $refProperty = $refObject->getProperty($property);
        $refProperty->setAccessible(true);
        return $refProperty->getValue($object);
    }
protected static function getProtectedValue ( $ object , $ property ) { $ refObject = new ReflectionObject ( $ object ) ; $ refProperty = $ refObject -> getProperty ( $ property ) ; $ refProperty -> setAccessible ( true ) ; return $ refProperty -> getValue ( $ object ) ; }
Access a protected property when the api does not allow access

@param object $object
@param string $property
@return mixed
Access a protected property when the api does not allow access