public function getClassReflection(string $class): ReflectionClass
    {
        $index = static::CLASS_CACHE . $class;

        return self::$reflections[$index]
            ?? self::$reflections[$index] = new ReflectionClass($class);
    }
public function getClassReflection(string $class): ReflectionClass
    {
        $index = static::CLASS_CACHE . $class;

        return self::$reflections[$index]
            ?? self::$reflections[$index] = new ReflectionClass($class);
    }
public function getClassReflection ( string $ class ) : ReflectionClass { $ index = static :: CLASS_CACHE . $ class ; return self :: $ reflections [ $ index ] ?? self :: $ reflections [ $ index ] = new ReflectionClass ( $ class ) ; }
Get a class's reflection.

@param string $class The class

@throws \ReflectionException

@return \ReflectionClass
Get a class s reflection .