Instantiator\Instantiator::hasInternalAncestors PHP 메소드

hasInternalAncestors() 개인적인 메소드

Verifies whether the given class is to be considered internal
private hasInternalAncestors ( ReflectionClass $reflectionClass ) : boolean
$reflectionClass ReflectionClass
리턴 boolean
    private function hasInternalAncestors(ReflectionClass $reflectionClass)
    {
        do {
            if ($reflectionClass->isInternal()) {
                return true;
            }
        } while ($reflectionClass = $reflectionClass->getParentClass());
        return false;
    }