Instantiator\Instantiator::hasInternalAncestors PHP Method

hasInternalAncestors() private method

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