protected function getParentClasses(ClassReflection $class, array $parentClasses = [])
    {
        $parentClass = $class->getParentClass();
        if ($parentClass !== false) {
            $parentClasses[] = $parentClass;
            $parentClasses = $this->getParentClasses($parentClass, $parentClasses);
        }

        return $parentClasses;
    }
protected function getParentClasses(ClassReflection $class, array $parentClasses = [])
    {
        $parentClass = $class->getParentClass();
        if ($parentClass !== false) {
            $parentClasses[] = $parentClass;
            $parentClasses = $this->getParentClasses($parentClass, $parentClasses);
        }

        return $parentClasses;
    }
protected function getParentClasses ( ClassReflection $ class , array $ parentClasses = [ ] ) { $ parentClass = $ class -> getParentClass ( ) ; if ( $ parentClass !== false ) { $ parentClasses [ ] = $ parentClass ; $ parentClasses = $ this -> getParentClasses ( $ parentClass , $ parentClasses ) ; } return $ parentClasses ; }
Finds all parent classes of the given class

@param ClassReflection $class The class to reflect
@param array $parentClasses Array of parent classes
@return array<ClassReflection>
Finds all parent classes of the given class