Instantiator\Instantiator::getReflectionClass PHP Method

getReflectionClass() private method

private getReflectionClass ( string $className ) : ReflectionClass
$className string
return ReflectionClass
    private function getReflectionClass($className)
    {
        if (!class_exists($className)) {
            throw InvalidArgumentException::fromNonExistingClass($className);
        }
        $reflection = new ReflectionClass($className);
        if ($reflection->isAbstract()) {
            throw InvalidArgumentException::fromAbstractClass($reflection);
        }
        return $reflection;
    }