public function getPropertyValue($class, $name)
    {
        $property = $this->findProperty($class, $name);
        $property->setAccessible(true);

        return $property->getValue(is_object($class) ? $class : null);
    }
public function getPropertyValue($class, $name)
    {
        $property = $this->findProperty($class, $name);
        $property->setAccessible(true);

        return $property->getValue(is_object($class) ? $class : null);
    }
public function getPropertyValue ( $ class , $ name ) { $ property = $ this -> findProperty ( $ class , $ name ) ; $ property -> setAccessible ( true ) ; return $ property -> getValue ( is_object ( $ class ) ? $ class : null ) ; }
Returns the value of the property.

@param object|string $class The class name or object.
@param string        $name  The property name.

@return mixed The value of the property.
Returns the value of the property .