propertyNotExistsInHierarchy() public static method

public static propertyNotExistsInHierarchy ( $propertyName, ReflectionException $exception, array $classHierarchy )
$exception ReflectionException
$classHierarchy array
 /**
  * Get proper PropertyReflection object
  *
  * @param object $object
  * @param string $propertyName
  * @throws ReflectionException
  * @return ReflectionProperty
  */
 private static function getPropertyReflection($object, $propertyName)
 {
     $reflected = new ReflectionObject($object);
     $classHierarchy = array();
     do {
         try {
             $property = $reflected->getProperty($propertyName);
             $property->setAccessible(true);
             return $property;
         } catch (ReflectionException $e) {
             $classHierarchy[] = $reflected->getName();
             $e = PropertyReflectionException::propertyNotExistsInHierarchy($propertyName, $e, $classHierarchy);
         }
     } while ($reflected = $reflected->getParentClass());
     throw $e;
 }