public static function getReflectionClass($class)
    {
        $class = self::toClassName($class);

        if (!isset(self::$cache[$class]['class'])) {
            self::$cache[$class]['class'] = new \ReflectionClass($class);
        }

        return self::$cache[$class]['class'];
    }