You are here

private function Instantiator::isInstantiableViaReflection 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::isInstantiableViaReflection()

Parameters

ReflectionClass $reflectionClass:

Return value

bool

1 call to Instantiator::isInstantiableViaReflection()
Instantiator::buildFactory in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
Builds a {invoking its constructor.

File

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

Class

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

Namespace

Doctrine\Instantiator

Code

private function isInstantiableViaReflection(ReflectionClass $reflectionClass) {
  if (\PHP_VERSION_ID >= 50600) {
    return !($this
      ->hasInternalAncestors($reflectionClass) && $reflectionClass
      ->isFinal());
  }
  return \PHP_VERSION_ID >= 50400 && !$this
    ->hasInternalAncestors($reflectionClass);
}