You are here

private function Instantiator::hasInternalAncestors in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php \Doctrine\Instantiator\Instantiator::hasInternalAncestors()

Verifies whether the given class is to be considered internal

Parameters

ReflectionClass $reflectionClass:

Return value

bool

1 call to Instantiator::hasInternalAncestors()
Instantiator::isInstantiableViaReflection in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php, line 213

Class

Instantiator
@author Marco Pivetta <ocramius@gmail.com>

Namespace

Doctrine\Instantiator

Code

private function hasInternalAncestors(ReflectionClass $reflectionClass) {
  do {
    if ($reflectionClass
      ->isInternal()) {
      return true;
    }
  } while ($reflectionClass = $reflectionClass
    ->getParentClass());
  return false;
}