classes/phing/tasks/ext/property/Variable.php
private function getField($thisClass, $fieldName)
    {
        $refClazz = new ReflectionObject($thisClass);
        if (!$refClazz->hasProperty($fieldName)) {
            throw new Exception("Invalid field : $fieldName");
        }

        return $refClazz->getProperty($fieldName);
    }
private function getField($thisClass, $fieldName)
    {
        $refClazz = new ReflectionObject($thisClass);
        if (!$refClazz->hasProperty($fieldName)) {
            throw new Exception("Invalid field : $fieldName");
        }

        return $refClazz->getProperty($fieldName);
    }
private function getField ( $ thisClass , $ fieldName ) { $ refClazz = new ReflectionObject ( $ thisClass ) ; if ( ! $ refClazz -> hasProperty ( $ fieldName ) ) { throw new Exception ( "Invalid field : $fieldName" ) ; } return $ refClazz -> getProperty ( $ fieldName ) ; }
Get a private property of a class

@param  mixed $thisClass The class
@param  string $fieldName The property to get
@return ReflectionProperty               The property value
@throws Exception
Get a private property of a class